Skip to content

Commit

Permalink
Fix linting issues shown up by static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
liamfallon committed Nov 11, 2024
1 parent 2bc404c commit 01084a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/engine/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (m *clonePackageMutation) cloneFromGit(ctx context.Context, gitPackage *api
}, nil
}

func (m *clonePackageMutation) cloneFromOci(ctx context.Context, ociPackage *api.OciPackage) (repository.PackageResources, error) {
func (m *clonePackageMutation) cloneFromOci(_ context.Context, _ *api.OciPackage) (repository.PackageResources, error) {
return repository.PackageResources{}, errors.New("clone from OCI is not implemented")
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/patchgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (m *applyPatchMutation) Apply(ctx context.Context, resources repository.Pac
return result, &api.TaskResult{Task: m.task}, nil
}

func buildPatchMutation(ctx context.Context, task *api.Task) (mutation, error) {
func buildPatchMutation(_ context.Context, task *api.Task) (mutation, error) {
if task.Patch == nil {
return nil, fmt.Errorf("patch not set for task of type %q", task.Type)
}
Expand Down

0 comments on commit 01084a8

Please sign in to comment.