Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Orive <[email protected]>
  • Loading branch information
Adirio committed Mar 22, 2021
1 parent 2983c97 commit 62e4812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
8 changes: 4 additions & 4 deletions pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func New(options ...Option) (*CLI, error) {
func newCLI(options ...Option) (*CLI, error) {
// Default CLI options.
c := &CLI{
commandName: "kubebuilder",
plugins: make(map[string]plugin.Plugin),
defaultPlugins: make(map[config.Version][]string),
fs: machinery.Filesystem{FS: afero.NewOsFs()},
commandName: "kubebuilder",
plugins: make(map[string]plugin.Plugin),
defaultPlugins: make(map[config.Version][]string),
fs: machinery.Filesystem{FS: afero.NewOsFs()},
}

// Apply provided options.
Expand Down
11 changes: 0 additions & 11 deletions pkg/cli/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,3 @@ func (c CLI) getAvailableProjectVersions() (projectVersions []string) {
sort.Strings(projectVersions)
return projectVersions
}

func (c CLI) getAvailablePlugins() (pluginKeys []string) {
for key, p := range c.plugins {
// Only return non-deprecated plugins.
if _, isDeprecated := p.(plugin.Deprecated); !isDeprecated {
pluginKeys = append(pluginKeys, strconv.Quote(key))
}
}
sort.Strings(pluginKeys)
return pluginKeys
}

0 comments on commit 62e4812

Please sign in to comment.