Fix two trivial lint warnings

Not sure why those show up for me locally but not if run by the CI.

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2021-11-08 15:32:37 +01:00 committed by Julien Pivotto
parent 26d8ae0e41
commit a1e595edac
2 changed files with 2 additions and 9 deletions

View file

@ -103,11 +103,7 @@ func (c *KumaSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
return errors.Errorf("kuma SD server must not be empty and have a scheme: %s", c.Server) return errors.Errorf("kuma SD server must not be empty and have a scheme: %s", c.Server)
} }
if err := c.HTTPClientConfig.Validate(); err != nil { return c.HTTPClientConfig.Validate()
return err
}
return nil
} }
func (c *KumaSDConfig) Name() string { func (c *KumaSDConfig) Name() string {

View file

@ -452,10 +452,7 @@ func (w *WAL) Repair(origErr error) error {
if err != nil { if err != nil {
return err return err
} }
if err := w.setSegment(s); err != nil { return w.setSegment(s)
return err
}
return nil
} }
// SegmentName builds a segment name for the directory. // SegmentName builds a segment name for the directory.