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
@@ -88,7 +88,7 @@ var convertCmd = &cobra.Command{
|
||||
|
||||
// Validate before doing anything else. Use "bundle" if passed in.
|
||||
app.ValidateFlags(GlobalBundle, args, cmd, &ConvertOpt)
|
||||
app.ValidateComposeFile(cmd, &ConvertOpt)
|
||||
app.ValidateComposeFile(&ConvertOpt)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ var downCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
// Validate before doing anything else.
|
||||
app.ValidateComposeFile(cmd, &DownOpt)
|
||||
app.ValidateComposeFile(&DownOpt)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
app.Down(DownOpt)
|
||||
|
||||
Reference in New Issue
Block a user