mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 09:03:08 -07:00
Use sortOn instead of sortBy and comparing
This commit is contained in:
parent
28978a8b65
commit
5487b3f229
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ checkScript sys spec = do
|
|||
code = cCode (pcComment pc)
|
||||
severity = cSeverity (pcComment pc)
|
||||
|
||||
sortMessages = sortBy (comparing order)
|
||||
sortMessages = sortOn order
|
||||
order pc =
|
||||
let pos = pcStartPos pc
|
||||
comment = pcComment pc in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue