fix lint issues

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-11-20 14:36:43 +01:00
parent 615f4f6759
commit f3929447d7
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
2 changed files with 2 additions and 5 deletions

View File

@ -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 {

View File

@ -138,7 +138,6 @@ func (c EntitlementConf) check(bo build.Options, expected *EntitlementConf) erro
if src, ok := ci.Attrs["src"]; ok {
roPaths[src] = struct{}{}
}
}
}