mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 05:21:34 -07:00
Use maybe instead of fromMaybe and fmap
This commit is contained in:
parent
67abfe159e
commit
ba86c6363c
2 changed files with 2 additions and 2 deletions
|
@ -5020,7 +5020,7 @@ checkPlusEqualsNumber params t =
|
|||
let
|
||||
unquotedLiteral = getUnquotedLiteral word
|
||||
isEmpty = unquotedLiteral == Just ""
|
||||
isUnquotedNumber = not isEmpty && fromMaybe False (all isDigit <$> unquotedLiteral)
|
||||
isUnquotedNumber = not isEmpty && maybe False (all isDigit) unquotedLiteral
|
||||
isNumericalVariableName = fromMaybe False $ do
|
||||
str <- unquotedLiteral
|
||||
CF.variableMayBeAssignedInteger state str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue