Skip to content

Commit 79cb8f1

Browse files
authored
Merge pull request #151 from maxmind/wstorey/eng-4203-lints-from-new-golangci-lint-are-fixed-in-githubcom-repos
Fix gosec G703 lints from golangci-lint v2.10.1
2 parents 41bfffb + e2b00ca commit 79cb8f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ func ConvertFile( //nolint: revive // too late to change name
3434
intRange bool,
3535
hexRange bool,
3636
) error {
37-
outFile, err := os.Create(filepath.Clean(outputFile))
37+
outFile, err := os.Create(filepath.Clean(outputFile)) //nolint:gosec // user-provided path
3838
if err != nil {
3939
return fmt.Errorf("creating output file (%s): %w", outputFile, err)
4040
}
4141

42-
inFile, err := os.Open(filepath.Clean(inputFile))
42+
inFile, err := os.Open(filepath.Clean(inputFile)) //nolint:gosec // user-provided path
4343
if err != nil {
4444
outFile.Close()
4545
return fmt.Errorf("opening input file (%s): %w", inputFile, err)

0 commit comments

Comments
 (0)