mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/snapshot: make golagci-lint happy
This commit is contained in:
parent
87eeac43cc
commit
bdaaea6820
1 changed files with 2 additions and 4 deletions
|
@ -53,9 +53,8 @@ func Create(createSnapshotURL string) (string, error) {
|
|||
return snap.Snapshot, nil
|
||||
} else if snap.Status == "error" {
|
||||
return "", errors.New(snap.Msg)
|
||||
} else {
|
||||
return "", fmt.Errorf("Unkown status: %v", snap.Status)
|
||||
}
|
||||
return "", fmt.Errorf("Unkown status: %v", snap.Status)
|
||||
}
|
||||
|
||||
// Delete deletes a snapshot via the provided api endpoint
|
||||
|
@ -91,9 +90,8 @@ func Delete(deleteSnapshotURL string, snapshotName string) error {
|
|||
return nil
|
||||
} else if snap.Status == "error" {
|
||||
return errors.New(snap.Msg)
|
||||
} else {
|
||||
return fmt.Errorf("Unkown status: %v", snap.Status)
|
||||
}
|
||||
return fmt.Errorf("Unkown status: %v", snap.Status)
|
||||
}
|
||||
|
||||
// Validate validates the snapshotName
|
||||
|
|
Loading…
Reference in a new issue