Skip to content

Commit

Permalink
lint: enable ineffassign and fix problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Apr 12, 2024
1 parent 12efbbf commit 0ef6388
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linters:
#- errcheck
- goimports
#- revive
#- ineffassign
- ineffassign
- govet
#- unconvert
#- staticcheck
Expand Down
1 change: 1 addition & 0 deletions gofakes3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func TestCreateObjectWithContentDisposition(t *testing.T) {
Bucket: aws.String(defaultBucket),
Key: aws.String("object"),
})
ts.OK(err)
if obj.ContentDisposition == nil {
t.Fatal("missing Content-Disposition")
}
Expand Down
1 change: 1 addition & 0 deletions s3mem/versionid.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func newVersionGenerator(seed uint64, size int) *versionGenerator {
if size <= 0 {
size = 64
}
_ = size // FIXME size is unused here - maybe it should go into versionGenerator
return &versionGenerator{next: new(big.Int), state: seed}
}

Expand Down

0 comments on commit 0ef6388

Please sign in to comment.