mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-20 10:39:22 +08:00
Use sortOn instead of sortBy and comparing
This commit is contained in:
@@ -104,7 +104,7 @@ checkScript sys spec = do
|
|||||||
code = cCode (pcComment pc)
|
code = cCode (pcComment pc)
|
||||||
severity = cSeverity (pcComment pc)
|
severity = cSeverity (pcComment pc)
|
||||||
|
|
||||||
sortMessages = sortBy (comparing order)
|
sortMessages = sortOn order
|
||||||
order pc =
|
order pc =
|
||||||
let pos = pcStartPos pc
|
let pos = pcStartPos pc
|
||||||
comment = pcComment pc in
|
comment = pcComment pc in
|
||||||
|
Reference in New Issue
Block a user