We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41bfffb + e2b00ca commit 79cb8f1Copy full SHA for 79cb8f1
convert/convert.go
@@ -34,12 +34,12 @@ func ConvertFile( //nolint: revive // too late to change name
34
intRange bool,
35
hexRange bool,
36
) error {
37
- outFile, err := os.Create(filepath.Clean(outputFile))
+ outFile, err := os.Create(filepath.Clean(outputFile)) //nolint:gosec // user-provided path
38
if err != nil {
39
return fmt.Errorf("creating output file (%s): %w", outputFile, err)
40
}
41
42
- inFile, err := os.Open(filepath.Clean(inputFile))
+ inFile, err := os.Open(filepath.Clean(inputFile)) //nolint:gosec // user-provided path
43
44
outFile.Close()
45
return fmt.Errorf("opening input file (%s): %w", inputFile, err)
0 commit comments