remove unused parameter from ValidateComposeFile()
In pkg/app/app.go, the function ValidateComposeFile() has an unused parameter "cmd *cobra.Command". This commit removes that parameter from the function and the callers of the function.
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ func ValidateFlags(bundle string, args []string, cmd *cobra.Command, opt *kobjec
|
||||
}
|
||||
|
||||
// ValidateComposeFile validated the compose file provided for conversion
|
||||
func ValidateComposeFile(cmd *cobra.Command, opt *kobject.ConvertOptions) {
|
||||
func ValidateComposeFile(opt *kobject.ConvertOptions) {
|
||||
if len(opt.InputFiles) == 0 {
|
||||
// Here docker-compose is the input
|
||||
opt.InputFiles = []string{"docker-compose.yml"}
|
||||
|
||||
Reference in New Issue
Block a user