Skip to content

Commit 2cfd1f2

Browse files
committed
Fuse maps
1 parent 953d9bc commit 2cfd1f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shellcheck.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ ioInterface options files = do
507507
where
508508
find filename deflt = do
509509
sources <- findM ((allowable inputs) `andM` doesFileExist) $
510-
(adjustPath filename):(map (</> filename) $ map adjustPath $ sourcePathFlag ++ sourcePathAnnotation)
510+
(adjustPath filename):(map ((</> filename) . adjustPath) $ sourcePathFlag ++ sourcePathAnnotation)
511511
case sources of
512512
Nothing -> return deflt
513513
Just first -> return first

src/ShellCheck/Checks/Commands.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ checkCatastrophicRm = CommandCheck (Basename "rm") $ \t ->
951951
when (isRecursive t) $
952952
mapM_ (mapM_ checkWord . braceExpand) $ arguments t
953953
where
954-
isRecursive = any (`elem` ["r", "R", "recursive"]) . map snd . getAllFlags
954+
isRecursive = any ((`elem` ["r", "R", "recursive"]) . snd) . getAllFlags
955955

956956
checkWord token =
957957
case getLiteralString token of

0 commit comments

Comments
 (0)