Skip to content

Commit

Permalink
move createtempfile errors back to fatal logs (forgot to put back fro…
Browse files Browse the repository at this point in the history
…m debugging)
  • Loading branch information
Xeckt committed Jun 21, 2024
1 parent 771f1f6 commit 8cad627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sztp-agent/pkg/secureagent/daemon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ func createTempTestFile(file string, content string, _ bool) {
// nolint:gosec
f, err := os.Create(file)
if err != nil {
log.Println(err)
log.Fatal(err)
}
defer f.Close()
_, err = f.WriteString(content)
if err != nil {
log.Println(err)
log.Fatal(err)
}
}

Expand Down

0 comments on commit 8cad627

Please sign in to comment.