Skip to content

Commit

Permalink
CI: enable the whitespace linter
Browse files Browse the repository at this point in the history
Signed-off-by: Nalin Dahyabhai <[email protected]>
  • Loading branch information
nalind committed Aug 15, 2024
1 parent 72647cc commit 3f02196
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ linters:
- revive
- unconvert
- unparam
- whitespace
1 change: 0 additions & 1 deletion add.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ func (b *Builder) userForRun(mountPoint string, userspec string) (specs.User, st
} else {
u.AdditionalGids = groups
}

}
return u, homeDir, err
}
Expand Down
1 change: 0 additions & 1 deletion commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ func (b *Builder) Commit(ctx context.Context, dest types.ImageReference, options
return imgID, nil, "", err
}
logrus.Debugf("added imgID %s to manifestID %s", imgID, manifestID)

}
return imgID, ref, manifestDigest, nil
}
1 change: 0 additions & 1 deletion new.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ func newBuilder(ctx context.Context, store storage.Store, options BuilderOptions

suffixDigitsModulo := 100
for {

var flags map[string]interface{}
// check if we have predefined ProcessLabel and MountLabel
// this could be true if this is another stage in a build
Expand Down
1 change: 0 additions & 1 deletion pkg/cli/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func GenBuildOptions(c *cobra.Command, inputArgs []string, iopts BuildOptions) (
if c.Flag("dns-search").Changed {
return options, nil, nil, errors.New("the --dns-search option cannot be used with --network=none")
}

}
if c.Flag("tag").Changed {
tags = iopts.Tag
Expand Down
1 change: 0 additions & 1 deletion pkg/cli/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func testFlagCompletion(t *testing.T, flags pflag.FlagSet, flagCompletions compl
t.Errorf(`Flag %q is a bool flag but has a shell completion function set.
You have to remove this shell completion function.`, f.Name)
return

}
})

Expand Down
2 changes: 0 additions & 2 deletions pkg/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ func parseSecurityOpts(securityOpts []string, commonOpts *define.CommonBuildOpti
default:
return fmt.Errorf("invalid --security-opt 2: %q", opt)
}

}

if commonOpts.SeccompProfilePath == "" {
Expand Down Expand Up @@ -1293,7 +1292,6 @@ func Secrets(secrets []string) (map[string]define.Secret, error) {
SourceType: typ,
}
parsed[id] = newSecret

}
return parsed, nil
}
Expand Down

0 comments on commit 3f02196

Please sign in to comment.