Skip to content

Commit

Permalink
lint removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanj-square committed Oct 28, 2024
1 parent caab062 commit c800bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/controller/artefacts/oci_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (s *ContainerService) GetDigestsKeys(ctx context.Context, digests []sha256.
func (s *ContainerService) Upload(ctx context.Context, artefact Artefact) (sha256.SHA256, error) {
repo, err := s.repoFactory()
if err != nil {
return sha256.SHA256{}, fmt.Errorf("unable to connect to repository '%s/%s': %w", s.host, err)
return sha256.SHA256{}, fmt.Errorf("unable to connect to repository '%s': %w", s.host, err)
}
desc := content.NewDescriptorFromBytes("application/x-octet-stream", artefact.Content)
if err = repo.Push(ctx, desc, bytes.NewReader(artefact.Content)); err != nil {
Expand Down
4 changes: 1 addition & 3 deletions frontend/cli/cmd_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ func (d *releaseExistsCmd) Run(release *releaseCmd) error {
if err != nil {
return fmt.Errorf("failed to create container service: %w", err)
}
digests := slices.Map(slices.Unique(d.Digests), func(s string) sh.SHA256 {
return sh.MustParseSHA256(s)
})
digests := slices.Map(slices.Unique(d.Digests), sh.MustParseSHA256)
keys, missing, err := svc.GetDigestsKeys(context.Background(), digests)
if err != nil {
return fmt.Errorf("failed to get keys: %w", err)
Expand Down

0 comments on commit c800bb0

Please sign in to comment.