From f3929447d7e6e669786173ab111d1149ef47f957 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:36:43 +0100 Subject: [PATCH] fix lint issues Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- bake/bake.go | 6 ++---- bake/entitlements.go | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bake/bake.go b/bake/bake.go index 86deecfd..10f6cf1e 100644 --- a/bake/bake.go +++ b/bake/bake.go @@ -1126,10 +1126,8 @@ func collectLocalPaths(t build.Inputs) []string { if v, ok := isLocalPath(t.DockerfilePath); ok { out = append(out, v) } - } else { - if strings.HasPrefix(t.ContextPath, "cwd://") { - out = append(out, strings.TrimPrefix(t.ContextPath, "cwd://")) - } + } else if strings.HasPrefix(t.ContextPath, "cwd://") { + out = append(out, strings.TrimPrefix(t.ContextPath, "cwd://")) } for _, v := range t.NamedContexts { if v.State != nil { diff --git a/bake/entitlements.go b/bake/entitlements.go index ee154be9..0459d2c1 100644 --- a/bake/entitlements.go +++ b/bake/entitlements.go @@ -138,7 +138,6 @@ func (c EntitlementConf) check(bo build.Options, expected *EntitlementConf) erro if src, ok := ci.Attrs["src"]; ok { roPaths[src] = struct{}{} } - } }