mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
all: apply suggestions from staticcheck.io
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -993,11 +993,3 @@ func printLines(e *Editor) {
|
||||
fmt.Printf("%d: %s\n", n, text)
|
||||
}
|
||||
}
|
||||
|
||||
// sortInts returns a and b sorted such that a2 <= b2.
|
||||
func sortInts(a, b int) (a2, b2 int) {
|
||||
if b < a {
|
||||
return b, a
|
||||
}
|
||||
return a, b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user