Skip to content

Commit f6418c7

Browse files
committed
update golangci-lint
1 parent 471a8ab commit f6418c7

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
- name: golangci-lint
4040
uses: golangci/golangci-lint-action@v2
4141
with:
42-
version: v1.41
42+
version: v1.63.4

.golangci.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ linters:
55
- staticcheck
66
- unused
77
- gosimple
8-
- structcheck
9-
- varcheck
108
- ineffassign
11-
- deadcode
129
- typecheck
1310
- gofmt
14-
- revive
11+
# - revive

model/file.go

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ func GetRandomFile(ctx context.Context, userID string) (*File, error) {
6868
return nil, err
6969
}
7070

71-
rand.Seed(time.Now().UnixNano())
7271
r := rand.Intn(count)
7372

7473
var file File

0 commit comments

Comments
 (0)