mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
chore(backend): reformat code
This commit is contained in:
@@ -16,11 +16,12 @@ type AlertList []Alert
|
||||
|
||||
func (a AlertList) Len() int {
|
||||
return len(a)
|
||||
|
||||
}
|
||||
|
||||
func (a AlertList) Swap(i, j int) {
|
||||
a[i], a[j] = a[j], a[i]
|
||||
}
|
||||
|
||||
func (a AlertList) Less(i, j int) bool {
|
||||
// compare timestamps, if equal compare fingerprints to stable sort order
|
||||
if a[i].StartsAt.After(a[j].StartsAt) {
|
||||
|
||||
Reference in New Issue
Block a user