File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ import (
44
44
)
45
45
46
46
// ErrNotFound is returned if a silence was not found.
47
- var ErrNotFound = fmt . Errorf ("silence not found" )
47
+ var ErrNotFound = errors . New ("silence not found" )
48
48
49
49
// ErrInvalidState is returned if the state isn't valid.
50
- var ErrInvalidState = fmt . Errorf ("invalid state" )
50
+ var ErrInvalidState = errors . New ("invalid state" )
51
51
52
52
type matcherCache map [* pb.Silence ]labels.Matchers
53
53
@@ -338,7 +338,7 @@ type Options struct {
338
338
339
339
func (o * Options ) validate () error {
340
340
if o .SnapshotFile != "" && o .SnapshotReader != nil {
341
- return fmt . Errorf ("only one of SnapshotFile and SnapshotReader must be set" )
341
+ return errors . New ("only one of SnapshotFile and SnapshotReader must be set" )
342
342
}
343
343
return nil
344
344
}
You can’t perform that action at this time.
0 commit comments