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