Skip to content

Commit

Permalink
hlint: eta reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 20, 2024
1 parent 62ea2f1 commit e532823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandwich-contexts/lib/Test/Sandwich/Contexts/Files.hs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ tryFindBinary binaryName env = do
-- | Find a file whose name exactly matches a string, using 'findFirstFile'.
-- This calls 'takeFileName', so it only matches against the name, not the relative path.
defaultFindFile :: String -> FilePath -> IO FilePath
defaultFindFile name root = findFirstFile (\x -> return (takeFileName x == name)) root
defaultFindFile name = findFirstFile (\x -> return (takeFileName x == name))

-- | Find the first file under the given directory (recursively) which matches the predicate.
-- Note that the callback receives the full relative path to the file from the root dir.
Expand Down

0 comments on commit e532823

Please sign in to comment.