Skip to content

Commit 2fabe3e

Browse files
committed
Fix linting issues
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 75af7c6 commit 2fabe3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ func genLock(lockGenCmd []string, absPath string, outputFileName string) {
7979

8080
outputPath := filepath.Join(absPath, outputFileName)
8181

82+
// #nosec G304
8283
outputFile, err := os.Create(outputPath)
8384
if err != nil {
84-
fmt.Fprintln(os.Stderr, "Error: failed to create output file: %v", err)
85+
fmt.Fprintln(os.Stderr, "Error: failed to create output file: ", err)
8586
os.Exit(1)
8687
}
8788
defer outputFile.Close()

0 commit comments

Comments
 (0)