Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Oct 2, 2024
1 parent 7173f33 commit 1f317d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/lsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func publishPositionalErrors(errByFilename map[string]errSet, s *Server) {

// If the end column is not set, set it to the length of the word.
if pp.EndColumn <= pp.StartColumn {
length, err := getLineOrWordLength(filename, int(pp.Line), int(pp.StartColumn), false)
length, err := getLineOrWordLength(filename, pp.Line, pp.StartColumn, false)
if err != nil {
s.logger.Errorf(err, "Failed to get line or word length")
continue
Expand Down

0 comments on commit 1f317d1

Please sign in to comment.