diff --git a/internal/lsp/span/parse.go b/internal/lsp/span/parse.go index 204f704b..4defbdc2 100644 --- a/internal/lsp/span/parse.go +++ b/internal/lsp/span/parse.go @@ -8,7 +8,6 @@ import ( "strconv" "strings" "unicode/utf8" - "math" ) // Parse returns the location represented by the input. @@ -87,10 +86,8 @@ func rstripSuffix(input string) suffix { if last >= 0 && last < len(remains)-1 { number, err := strconv.ParseInt(remains[last+1:], 10, 64) if err == nil { - if number >= math.MinInt && number <= math.MaxInt { - num = int(number) - remains = remains[:last+1] - } + num = int(number) + remains = remains[:last+1] } } // now see if we have a trailing separator