mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 14:27:35 +08:00
Remove incorrect otherwise
You're supposed to use otherwise where you need a Boolean, not a pattern match. This is misleadingly shadowing the real otherwise. Use _ instead.
This commit is contained in:
@@ -487,7 +487,7 @@ checkBraceExpansionVars = ForShell [Bash] f
|
||||
T_DollarBraced {} -> return "$"
|
||||
T_DollarExpansion {} -> return "$"
|
||||
T_DollarArithmetic {} -> return "$"
|
||||
otherwise -> return "-"
|
||||
_ -> return "-"
|
||||
toString t = fromJust $ getLiteralStringExt literalExt t
|
||||
isEvaled t = do
|
||||
cmd <- getClosestCommandM t
|
||||
|
@@ -135,6 +135,6 @@ shellForExecutable name =
|
||||
"ksh" -> return Ksh
|
||||
"ksh88" -> return Ksh
|
||||
"ksh93" -> return Ksh
|
||||
otherwise -> Nothing
|
||||
_ -> Nothing
|
||||
|
||||
flagsForRead = "sreu:n:N:i:p:a:t:"
|
||||
|
Reference in New Issue
Block a user