Skip to content

Commit

Permalink
Fix govet failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
amwat committed Mar 20, 2019
1 parent ba62960 commit c406b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prow/pubsub/subscriber/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *Subscriber) handlePeriodicJob(l *logrus.Entry, msg messageInterface, su
pj.Status.State = prowapi.ErrorState
pj.Status.Description = err.Error()
if s.Reporter.ShouldReport(&prowJob) {
if err := s.Reporter.Report(&prowJob); err != nil {
if _, err := s.Reporter.Report(&prowJob); err != nil {
l.Warningf("failed to report status. %v", err)
}
}
Expand Down

0 comments on commit c406b50

Please sign in to comment.