Skip to content

Commit

Permalink
Merge pull request #458 from vitessio/fix-golint
Browse files Browse the repository at this point in the history
  • Loading branch information
frouioui authored Oct 13, 2023
2 parents 8a16c0c + d423898 commit 2edf725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/server/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *Server) removePRFromQueue(element *executionQueueElement) {
defer mtx.Unlock()

for id, e := range queue {
if e.Executing == false && id.PullNb == element.identifier.PullNb && id.BenchmarkType == element.identifier.BenchmarkType && id.Source == element.identifier.Source && id.GitRef != element.identifier.GitRef {
if !e.Executing && id.PullNb == element.identifier.PullNb && id.BenchmarkType == element.identifier.BenchmarkType && id.Source == element.identifier.Source && id.GitRef != element.identifier.GitRef {
slog.Infof("%+v is removed from the queue", id)
delete(queue, id)
}
Expand Down

0 comments on commit 2edf725

Please sign in to comment.