forked from LaconicNetwork/kompose
Remove redundant strings.ToLower()
Removes the redundant strings.ToLower commands for GlobalProvider in up.go, convert.go and down.go
This commit is contained in:
+1
-3
@@ -17,8 +17,6 @@ limitations under the License.
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes/kompose/pkg/app"
|
||||
"github.com/kubernetes/kompose/pkg/kobject"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -39,7 +37,7 @@ var downCmd = &cobra.Command{
|
||||
// Create the Convert options.
|
||||
DownOpt = kobject.ConvertOptions{
|
||||
InputFiles: GlobalFiles,
|
||||
Provider: strings.ToLower(GlobalProvider),
|
||||
Provider: GlobalProvider,
|
||||
Namespace: DownNamespace,
|
||||
IsNamespaceFlag: cmd.Flags().Lookup("namespace").Changed,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user