mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-12 00:05:14 +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:
@@ -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