Skip to content

Commit

Permalink
lint: enable unconvert and fix problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Apr 12, 2024
1 parent 0ef6388 commit 1703edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ linters:
#- revive
- ineffassign
- govet
#- unconvert
- unconvert
#- staticcheck
- gosimple
- stylecheck
Expand Down
2 changes: 1 addition & 1 deletion uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func (mpu *multipartUpload) AddPart(partNumber int, at time.Time, body []byte) (
// What the ETag actually is is not specified, so let's just invent any old thing
// from guaranteed unique input:
hash := md5.New()
hash.Write([]byte(body))
hash.Write(body)
etag = fmt.Sprintf(`"%s"`, hex.EncodeToString(hash.Sum(nil)))

part := multipartUploadPart{
Expand Down

0 comments on commit 1703edf

Please sign in to comment.