mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-23 12:44: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)
|
||||
}
|
||||
|
||||
if err := c.HTTPClientConfig.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.HTTPClientConfig.Validate()
|
||||
}
|
||||
|
||||
func (c *KumaSDConfig) Name() string {
|
||||
|
|
|
@ -452,10 +452,7 @@ func (w *WAL) Repair(origErr error) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := w.setSegment(s); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return w.setSegment(s)
|
||||
}
|
||||
|
||||
// SegmentName builds a segment name for the directory.
|
||||
|
|
Loading…
Reference in a new issue