Skip to content

Commit e782047

Browse files
committed
Use find
1 parent 8480563 commit e782047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShellCheck/ASTLib.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ getCommandNameAndToken direct t = fromMaybe (Nothing, t) $ do
425425
"run" -> firstArg -- Used by bats
426426
"exec" -> do
427427
opts <- getBsdOpts "cla:" args
428-
(_, (t, _)) <- listToMaybe $ filter (null . fst) opts
428+
(_, (t, _)) <- find (null . fst) opts
429429
return t
430430
_ -> fail ""
431431

0 commit comments

Comments
 (0)