Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unconvert linter #222

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ linters:
- sqlclosecheck
- staticcheck
- testifylint
- unconvert
- unparam
- unused
4 changes: 2 additions & 2 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (s *service) GetObjectURL(ctx context.Context, namespace, container, versio
}

func (s *service) EnsureBLOBPresenceOrGetUploadURL(ctx context.Context, checksum string, size uint64) (string, error) {
err := s.mdRepo.EnsureBlobKey(ctx, checksum, uint64(size))
err := s.mdRepo.EnsureBlobKey(ctx, checksum, size)
if err == nil {
return "", nil
}
Expand All @@ -267,7 +267,7 @@ func (s *service) EnsureBLOBPresenceOrGetUploadURL(ctx context.Context, checksum
if err != nil {
return "", err
}
return url, s.mdRepo.CreateBLOB(ctx, checksum, uint64(size), "application/octet-stream")
return url, s.mdRepo.CreateBLOB(ctx, checksum, size, "application/octet-stream")
}

return "", err
Expand Down
Loading