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:
Shubham Minglani 2017-07-12 14:45:52 +05:30
parent c16f88a4d3
commit 0a9e2a7885
4 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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)

View File

@ -60,7 +60,7 @@ var upCmd = &cobra.Command{
}
// Validate before doing anything else.
app.ValidateComposeFile(cmd, &UpOpt)
app.ValidateComposeFile(&UpOpt)
},
Run: func(cmd *cobra.Command, args []string) {
app.Up(UpOpt)

View File

@ -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"}