Skip to content

Commit 51305d9

Browse files
Return value does not need to be named
Signed-off-by: George Robinson <[email protected]>
1 parent 2cfeb12 commit 51305d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

silence/silence.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ func (s *Silences) Expire(id string) error {
565565
//
566566
// Set returns an error if a silence is invalid, or would exceed any of the
567567
// existing limits. When this happens, a silence might have an ID even though
568-
// the operation failed. It is safe to re-use the silence for subsequent calls
569-
// to Set where previous calls have failed.
570-
func (s *Silences) Set(sil *pb.Silence) (err error) {
568+
// the operation failed. When this happens the silence cannot be re-used
569+
// and a new silence must be created.
570+
func (s *Silences) Set(sil *pb.Silence) error {
571571
s.mtx.Lock()
572572
defer s.mtx.Unlock()
573573

0 commit comments

Comments
 (0)