From d25c2cba801cbaa9f9c0d5a92b90f153630ffe24 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 21 Aug 2026 15:52:02 +0200 Subject: Upgrade to Go 1.27 and apply go fix modernization --- mountain_pass/extract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mountain_pass') diff --git a/mountain_pass/extract.go b/mountain_pass/extract.go index 81bed68..705dbd3 100644 --- a/mountain_pass/extract.go +++ b/mountain_pass/extract.go @@ -86,7 +86,7 @@ func parseElevation(ele string) (int, bool) { if ele == "" { return 0, false } - for _, candidate := range strings.Fields(ele) { + for candidate := range strings.FieldsSeq(ele) { if value, err := strconv.Atoi(candidate); err == nil { return value, true } -- cgit v1.3