mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
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:
parent
26d8ae0e41
commit
a1e595edac
|
@ -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 {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue