Makefile: update golangci-lint version from v1.54.2 to v1.55.1

See https://github.com/golangci/golangci-lint/releases/tag/v1.55.1
This commit is contained in:
Aliaksandr Valialkin 2023-11-02 21:37:49 +01:00
parent a39f8f4e00
commit 2eff6c9a82
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB
2 changed files with 5 additions and 3 deletions

View file

@ -379,7 +379,7 @@ golangci-lint: install-golangci-lint
golangci-lint run
install-golangci-lint:
which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.51.2
which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.55.1
govulncheck: install-govulncheck
govulncheck ./...

View file

@ -51,7 +51,8 @@ func Create(createSnapshotURL string) (string, error) {
if snap.Status == "ok" {
logger.Infof("Snapshot %s created", snap.Snapshot)
return snap.Snapshot, nil
} else if snap.Status == "error" {
}
if snap.Status == "error" {
return "", errors.New(snap.Msg)
} else {
return "", fmt.Errorf("Unkown status: %v", snap.Status)
@ -89,7 +90,8 @@ func Delete(deleteSnapshotURL string, snapshotName string) error {
if snap.Status == "ok" {
logger.Infof("Snapshot %s deleted", snapshotName)
return nil
} else if snap.Status == "error" {
}
if snap.Status == "error" {
return errors.New(snap.Msg)
} else {
return fmt.Errorf("Unkown status: %v", snap.Status)