Skip to content

Commit 749d902

Browse files
Merge pull request #1013 from flavianmissi/fix-golangci-lint
NO-JIRA: bump golangci-lint to v1.56.2
2 parents 48875d3 + d3cc89b commit 749d902

File tree

7 files changed

+1
-8
lines changed

7 files changed

+1
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PROG := cluster-image-registry-operator
44

55
GOLANGCI_LINT = _output/tools/golangci-lint
66
GOLANGCI_LINT_CACHE = $(PWD)/_output/golangci-lint-cache
7-
GOLANGCI_LINT_VERSION = v1.51.0
7+
GOLANGCI_LINT_VERSION = v1.56.2
88

99
GO_REQUIRED_MIN_VERSION = 1.16
1010

pkg/operator/finalizer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ func (c *Controller) finalizeResources(o *imageregistryv1.Config) error {
128128
return true, nil
129129
},
130130
)
131-
132131
if err != nil {
133132
return fmt.Errorf("unable to wait for %s deletion: %s", utilObjectInfo(o), err)
134133
}

pkg/storage/ibmcos/ibmcos.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@ func (d *driver) RemoveStorage(cr *imageregistryv1.Config) (bool, error) {
653653
_, err = client.DeleteBucketWithContext(d.Context, &s3.DeleteBucketInput{
654654
Bucket: aws.String(d.Config.Bucket),
655655
})
656-
657656
if err != nil {
658657
if aerr, ok := err.(awserr.Error); ok {
659658
if aerr.Code() == s3.ErrCodeNoSuchBucket {

pkg/storage/oss/oss.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ func (d *driver) bucketExists(bucketName string) (bool, error) {
281281
}
282282

283283
_, err = svc.GetBucketInfo(bucketName)
284-
285284
if err != nil {
286285
return false, err
287286
}
@@ -625,7 +624,6 @@ func (d *driver) RemoveStorage(cr *imageregistryv1.Config) (bool, error) {
625624

626625
// Delete bucket
627626
err = svc.DeleteBucket(d.Config.Bucket)
628-
629627
if err != nil {
630628
if oerr, ok := err.(oss.ServiceError); ok {
631629
if oerr.Code == "NoSuchBucket" {

pkg/storage/s3/s3.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,6 @@ func (d *driver) RemoveStorage(cr *imageregistryv1.Config) (bool, error) {
886886
_, err = svc.DeleteBucketWithContext(d.Context, &s3.DeleteBucketInput{
887887
Bucket: aws.String(d.Config.Bucket),
888888
})
889-
890889
if err != nil {
891890
if aerr, ok := err.(awserr.Error); ok {
892891
if aerr.Code() == s3.ErrCodeNoSuchBucket {

test/e2e/aws_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,6 @@ func createAWSConfigFile(awsSecret *corev1.Secret, kubeClient *framework.Clients
795795
ExpirationSeconds: &twoHoursAsSeconds,
796796
},
797797
}, metav1.CreateOptions{})
798-
799798
if err != nil {
800799
return
801800
}

test/e2e/azure_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ func TestAzurePrivateStorageAccount(t *testing.T) {
137137
return true, nil
138138
},
139139
)
140-
141140
if err != nil {
142141
t.Fatalf("failed to poll CR: %q", err)
143142
}

0 commit comments

Comments
 (0)