From 01084a8a1f16e2579b930e3a3ded37a3284dc2fe Mon Sep 17 00:00:00 2001 From: liamfallon Date: Mon, 11 Nov 2024 17:59:18 +0000 Subject: [PATCH] Fix linting issues shown up by static checks --- pkg/engine/clone.go | 2 +- pkg/engine/patchgen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/engine/clone.go b/pkg/engine/clone.go index e6722d27..0bc32e59 100644 --- a/pkg/engine/clone.go +++ b/pkg/engine/clone.go @@ -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") } diff --git a/pkg/engine/patchgen.go b/pkg/engine/patchgen.go index 01a74585..b09fb01f 100644 --- a/pkg/engine/patchgen.go +++ b/pkg/engine/patchgen.go @@ -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) }