File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ ioInterface options files = do
507
507
where
508
508
find filename deflt = do
509
509
sources <- findM ((allowable inputs) `andM` doesFileExist) $
510
- (adjustPath filename): (map (</> filename) $ map adjustPath $ sourcePathFlag ++ sourcePathAnnotation)
510
+ (adjustPath filename): (map (( </> filename) . adjustPath) $ sourcePathFlag ++ sourcePathAnnotation)
511
511
case sources of
512
512
Nothing -> return deflt
513
513
Just first -> return first
Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ checkCatastrophicRm = CommandCheck (Basename "rm") $ \t ->
951
951
when (isRecursive t) $
952
952
mapM_ (mapM_ checkWord . braceExpand) $ arguments t
953
953
where
954
- isRecursive = any (`elem` [" r" , " R" , " recursive" ]) . map snd . getAllFlags
954
+ isRecursive = any (( `elem` [" r" , " R" , " recursive" ]) . snd ) . getAllFlags
955
955
956
956
checkWord token =
957
957
case getLiteralString token of
You can’t perform that action at this time.
0 commit comments