mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Use maybe instead of fromMaybe and fmap
This commit is contained in:
parent
f5c6771016
commit
28978a8b65
3 changed files with 9 additions and 9 deletions
|
@ -88,9 +88,9 @@ checkScript sys spec = do
|
|||
asOptionalChecks = csOptionalChecks spec
|
||||
} where as = newAnalysisSpec root
|
||||
let analysisMessages =
|
||||
fromMaybe [] $
|
||||
maybe []
|
||||
(arComments . analyzeScript . analysisSpec)
|
||||
<$> prRoot result
|
||||
$ prRoot result
|
||||
let translator = tokenToPosition tokenPositions
|
||||
return . nub . sortMessages . filter shouldInclude $
|
||||
(parseMessages ++ map translator analysisMessages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue