Skip to content

Commit

Permalink
style: Make golint happy!!
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jan 7, 2024
1 parent 100fa87 commit 6c8387b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jobstats/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ func (j *jobStatsDB) getJobStats(startTime, endTime time.Time) error {

// Make prepare statement and defer closing statement
stmt, err := j.prepareInsertStatement(tx)
defer stmt.Close()
if err != nil {
level.Error(j.logger).Log("msg", "Failed to prepare insert job statement in DB", "err", err)
return err
}
defer stmt.Close()

// Insert data into DB
level.Debug(j.logger).Log("msg", "Inserting jobs into DB")
Expand Down

0 comments on commit 6c8387b

Please sign in to comment.