Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Jun 19, 2024
1 parent 75af7c6 commit 2fabe3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ func genLock(lockGenCmd []string, absPath string, outputFileName string) {

outputPath := filepath.Join(absPath, outputFileName)

// #nosec G304
outputFile, err := os.Create(outputPath)
if err != nil {
fmt.Fprintln(os.Stderr, "Error: failed to create output file: %v", err)
fmt.Fprintln(os.Stderr, "Error: failed to create output file: ", err)
os.Exit(1)
}
defer outputFile.Close()
Expand Down

0 comments on commit 2fabe3e

Please sign in to comment.