Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: upgrade golangci-lint #673

Merged
merged 6 commits into from
Nov 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
perf: use strconv.Itoa
  • Loading branch information
G-Rath committed Nov 23, 2023
commit ddbfdeaa2fc045d2ca34562d3e4308e1bd3ea414
3 changes: 2 additions & 1 deletion cmd/osv-scanner/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"testing"

Expand Down Expand Up @@ -59,7 +60,7 @@ func dedent(t *testing.T, str string) string {
}
}

re := regexp.MustCompile(`\n[\t ]{` + fmt.Sprint(size) + `}`)
re := regexp.MustCompile(`\n[\t ]{` + strconv.Itoa(size) + `}`)
str = re.ReplaceAllString(str, "\n")
}

Expand Down