Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: George Robinson <[email protected]>
  • Loading branch information
grobinson-grafana committed Jun 20, 2024
1 parent eaed242 commit c38e0b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions silence/silence.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,7 @@ func (s *Silences) Set(sil *pb.Silence) error {
sil.StartsAt = now
}

if err = s.setSilence(sil, now, false); err != nil {
return err
}

return nil
return s.setSilence(sil, now, false)
}

// canUpdate returns true if silence a can be updated to b without
Expand Down

0 comments on commit c38e0b4

Please sign in to comment.