mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +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
|
return snap.Snapshot, nil
|
||||||
} else if snap.Status == "error" {
|
} else if snap.Status == "error" {
|
||||||
return "", errors.New(snap.Msg)
|
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
|
// Delete deletes a snapshot via the provided api endpoint
|
||||||
|
@ -91,9 +90,8 @@ func Delete(deleteSnapshotURL string, snapshotName string) error {
|
||||||
return nil
|
return nil
|
||||||
} else if snap.Status == "error" {
|
} else if snap.Status == "error" {
|
||||||
return errors.New(snap.Msg)
|
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
|
// Validate validates the snapshotName
|
||||||
|
|
Loading…
Reference in a new issue