mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 17:49:12 +08:00
Adjust a pattern to get rid of a fromJust
This commit is contained in:
@@ -2635,8 +2635,8 @@ checkMultipleAppends params t =
|
||||
where
|
||||
checkList list =
|
||||
mapM_ checkGroup (groupWith (fmap fst) $ map getTarget list)
|
||||
checkGroup (f:_:_:_) | isJust f =
|
||||
style (snd $ fromJust f) 2129
|
||||
checkGroup (Just (_,id):_:_:_) =
|
||||
style id 2129
|
||||
"Consider using { cmd1; cmd2; } >> file instead of individual redirects."
|
||||
checkGroup _ = return ()
|
||||
getTarget (T_Annotation _ _ t) = getTarget t
|
||||
|
Reference in New Issue
Block a user