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:
Joseph C. Sible 2020-02-01 22:50:14 -05:00
parent 93be86f988
commit 0f48bb78a5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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:"