diff --git a/.golangci.yml b/.golangci.yml index 1766f14..b323ff5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,7 @@ linters: #- revive - ineffassign - govet - #- unconvert + - unconvert #- staticcheck - gosimple - stylecheck diff --git a/uploader.go b/uploader.go index 9ca8b43..b213261 100644 --- a/uploader.go +++ b/uploader.go @@ -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{