mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-27 03:33:00 +03:00
Optimize Review.Exceptions slightly
This commit is contained in:
parent
941d1243ce
commit
b28ec62b08
@ -48,7 +48,10 @@ addDirectories directories (Exceptions exceptions) =
|
|||||||
dir ++ "/"
|
dir ++ "/"
|
||||||
)
|
)
|
||||||
in
|
in
|
||||||
Exceptions { exceptions | directories = cleanedDirectories ++ exceptions.directories }
|
Exceptions
|
||||||
|
{ directories = cleanedDirectories ++ exceptions.directories
|
||||||
|
, files = exceptions.files
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
addFiles : List String -> Exceptions -> Exceptions
|
addFiles : List String -> Exceptions -> Exceptions
|
||||||
@ -60,7 +63,10 @@ addFiles files (Exceptions exceptions) =
|
|||||||
|> List.map makePathOSAgnostic
|
|> List.map makePathOSAgnostic
|
||||||
|> Set.fromList
|
|> Set.fromList
|
||||||
in
|
in
|
||||||
Exceptions { exceptions | files = Set.union cleanedFiles exceptions.files }
|
Exceptions
|
||||||
|
{ files = Set.union cleanedFiles exceptions.files
|
||||||
|
, directories = exceptions.directories
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
apply : Exceptions -> (a -> String) -> List a -> List a
|
apply : Exceptions -> (a -> String) -> List a -> List a
|
||||||
|
Loading…
Reference in New Issue
Block a user