Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Sep 17, 2021
1 parent ccf24b9 commit b4a1290
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/panic_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var PanicReportJournalTail = defaultJournalTail
func GeneratePanicReport(persistPath, repoPath, label string) {
// make sure we always dump the latest logs on the way out
// especially since we're probably panicking
defer panicLog.Sync()
defer panicLog.Sync() //nolint:errcheck

if persistPath == "" {
panicLog.Error("persist path is empty, aborting panic report generation")
Expand Down Expand Up @@ -71,7 +71,7 @@ func writeStackTrace(file string) {
if err != nil {
panicLog.Error(err.Error())
}
defer f.Close()
defer f.Close() //nolint:errheck

if _, err := f.Write(debug.Stack()); err != nil {
panicLog.Error(err.Error())
Expand All @@ -90,7 +90,7 @@ func writeProfile(profileType string, file string) {
panicLog.Error(err.Error())
return
}
defer f.Close()
defer f.Close() //nolint:errheck

if err := p.WriteTo(f, 0); err != nil {
panicLog.Error(err.Error())
Expand All @@ -108,7 +108,7 @@ func writeJournalTail(tailLen int, repoPath, file string) {
panicLog.Error(err.Error())
return
}
defer f.Close()
defer f.Close() //nolint:errheck

jPath, err := getLatestJournalFilePath(repoPath)
if err != nil {
Expand Down

0 comments on commit b4a1290

Please sign in to comment.