Move bracedString to be local to its last use site

This commit is contained in:
Joseph C. Sible 2020-04-05 17:26:24 -04:00
parent 999b7e2596
commit b58bb4ba9d
2 changed files with 4 additions and 4 deletions

View file

@ -134,10 +134,6 @@ isUnquotedFlag token = fromMaybe False $ do
str <- getLeadingUnquotedString token
return $ "-" `isPrefixOf` str
-- Given a T_DollarBraced, return a simplified version of the string contents.
bracedString (T_DollarBraced _ _ l) = concat $ oversimplify l
bracedString _ = error "Internal shellcheck error, please report! (bracedString on non-variable)"
-- Is this an expansion of multiple items of an array?
isArrayExpansion (T_DollarBraced _ _ l) =
let string = concat $ oversimplify l in