mirror of https://github.com/docker/compose.git
more concise validation
Co-authored-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
ec5f4e9202
commit
6ff20cf104
|
@ -14,8 +14,7 @@ func AzureLoginCommand() *cobra.Command {
|
|||
Short: "Log in to azure",
|
||||
Args: cobra.MaximumNArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
err := opts.Validate()
|
||||
if err != nil {
|
||||
if err := opts.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
return cloudLogin(cmd, "aci", opts)
|
||||
|
|
Loading…
Reference in New Issue