Skip to content

[skip changelog] Bump golangci/golangci-lint-action from 6 to 7 #2872

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

Merged
Merged
Prev Previous commit
Next Next commit
Fixed linter warning
internal/arduino/builder/internal/utils/utils.go:85:25: QF1004: could use strings.ReplaceAll instead (staticcheck)
                rows := strings.Split(strings.Replace(depFile, "\r\n", "\n", -1), "\n")
                                      ^
  • Loading branch information
cmaglie committed Mar 31, 2025
commit 494679a4dcc737390e113b11c0d210cb9a5e4290
2 changes: 1 addition & 1 deletion internal/arduino/builder/internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func ObjFileIsUpToDate(sourceFile, objectFile, dependencyFile *paths.Path) (bool
}

checkDepFile := func(depFile string) (bool, error) {
rows := strings.Split(strings.Replace(depFile, "\r\n", "\n", -1), "\n")
rows := strings.Split(strings.ReplaceAll(depFile, "\r\n", "\n"), "\n")
rows = f.Map(rows, removeEndingBackSlash)
rows = f.Map(rows, strings.TrimSpace)
rows = f.Map(rows, unescapeDep)
Expand Down