Skip to content

Commit c9ea2bc

Browse files
committed
style: reformat imports and fix linter deprecation
Apply goimports formatting to standard library packages. Fix deprecated usage of netErr.Temporary() in rabbit package to pass linter. Signed-off-by: mtalpha <mohamed.tahrioui@aleph-alpha.com>
1 parent dd4a36a commit c9ea2bc

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

v1/logger/fx_module.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package logger
22

33
import (
44
"context"
5+
56
"go.uber.org/fx"
67
)
78

v1/minio/errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package minio
22

33
import (
44
"errors"
5-
"github.com/minio/minio-go/v7"
65
"net/url"
76
"strings"
7+
8+
"github.com/minio/minio-go/v7"
89
)
910

1011
// Common object storage error types that can be used by consumers of this package.

v1/minio/presigned_get_utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package minio
33
import (
44
"context"
55
"fmt"
6-
"github.com/minio/minio-go/v7"
76
"math"
87
"net/url"
98
"time"
9+
10+
"github.com/minio/minio-go/v7"
1011
)
1112

1213
// MultipartPresignedGetInfo contains information for downloading an object in parts

v1/postgres/errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package postgres
22

33
import (
44
"errors"
5+
"strings"
6+
57
"github.com/jackc/pgx/v5/pgconn"
68
"gorm.io/gorm"
7-
"strings"
89
)
910

1011
// Common database error types that can be used by consumers of this package.

v1/rabbit/errors.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,6 @@ func (r *Rabbit) translateNetworkError(netErr net.Error) error {
434434
if netErr.Timeout() {
435435
return ErrTimeout
436436
}
437-
if netErr.Temporary() {
438-
return ErrNetworkError
439-
}
440437
return ErrNetworkError
441438
}
442439

0 commit comments

Comments
 (0)