mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 00:53:15 -07:00
Use maybe instead of isJust and fromJust
This commit is contained in:
parent
6595e14d25
commit
392b57b8e8
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ checkBraceExpansionVars = ForShell [Bash] f
|
|||
toString t = fromJust $ getLiteralStringExt literalExt t
|
||||
isEvaled t = do
|
||||
cmd <- getClosestCommandM t
|
||||
return $ isJust cmd && fromJust cmd `isUnqualifiedCommand` "eval"
|
||||
return $ maybe False (`isUnqualifiedCommand` "eval") cmd
|
||||
|
||||
|
||||
prop_checkMultiDimensionalArrays1 = verify checkMultiDimensionalArrays "foo[a][b]=3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue