mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 18:52:52 +08:00
Use getLiteralStringDef instead of rebuilding it with fromJust
This commit is contained in:
@@ -4509,7 +4509,7 @@ prop_checkCommandWithTrailingSymbol9 = verifyNot checkCommandWithTrailingSymbol
|
||||
checkCommandWithTrailingSymbol _ t =
|
||||
case t of
|
||||
T_SimpleCommand _ _ (cmd:_) ->
|
||||
let str = fromJust $ getLiteralStringExt (\_ -> Just "x") cmd
|
||||
let str = getLiteralStringDef "x" cmd
|
||||
last = lastOrDefault 'x' str
|
||||
in
|
||||
case str of
|
||||
|
Reference in New Issue
Block a user