Skip to content

Commit b789900

Browse files
authored
Merge pull request #2102 from Adirio/fix-lint
🌱 Fix linting issues
2 parents 2983c97 + 62e4812 commit b789900

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

pkg/cli/cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ func New(options ...Option) (*CLI, error) {
120120
func newCLI(options ...Option) (*CLI, error) {
121121
// Default CLI options.
122122
c := &CLI{
123-
commandName: "kubebuilder",
124-
plugins: make(map[string]plugin.Plugin),
125-
defaultPlugins: make(map[config.Version][]string),
126-
fs: machinery.Filesystem{FS: afero.NewOsFs()},
123+
commandName: "kubebuilder",
124+
plugins: make(map[string]plugin.Plugin),
125+
defaultPlugins: make(map[config.Version][]string),
126+
fs: machinery.Filesystem{FS: afero.NewOsFs()},
127127
}
128128

129129
// Apply provided options.

pkg/cli/init.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,3 @@ func (c CLI) getAvailableProjectVersions() (projectVersions []string) {
104104
sort.Strings(projectVersions)
105105
return projectVersions
106106
}
107-
108-
func (c CLI) getAvailablePlugins() (pluginKeys []string) {
109-
for key, p := range c.plugins {
110-
// Only return non-deprecated plugins.
111-
if _, isDeprecated := p.(plugin.Deprecated); !isDeprecated {
112-
pluginKeys = append(pluginKeys, strconv.Quote(key))
113-
}
114-
}
115-
sort.Strings(pluginKeys)
116-
return pluginKeys
117-
}

0 commit comments

Comments
 (0)