get rid of interface{} since we now require Go 1.18

This commit is contained in:
Kovid Goyal
2022-11-14 15:42:00 +05:30
parent a44c89504b
commit 2cacd7a64a
15 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings"
)
func parse_scroll_amount(amt string) ([]interface{}, error) {
var ans = make([]interface{}, 2)
func parse_scroll_amount(amt string) ([]any, error) {
var ans = make([]any, 2)
if amt == "start" || amt == "end" {
ans[0] = amt
ans[1] = nil