Skip to content

Commit

Permalink
[drop] test lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Aug 9, 2024
1 parent a114c80 commit a3e956a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsers/nmparser/parse_run_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func replaceTrim(line string, replacement string) string {
} */

func parseLine(line string, n int) string {
if tokens := strings.Fields(line); len(tokens) >= n {
tokens := strings.Fields(line)

Check failure on line 42 in parsers/nmparser/parse_run_details.go

View workflow job for this annotation

GitHub Actions / lint

variable 'tokens' is only used in the if-statement (parsers/nmparser/parse_run_details.go:43:2); consider using short syntax (ifshort)
if len(tokens) >= n {
return tokens[n]
}

Expand Down

0 comments on commit a3e956a

Please sign in to comment.