Fix usestdlibvars and whitespace linters issues. (#6162)

Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
Co-authored-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
Xun Jiang/Bruce Jiang
2023-04-24 09:10:55 +08:00
committed by GitHub
parent 14f31eed8c
commit 1fd28e8a36
34 changed files with 4 additions and 49 deletions

View File

@@ -355,7 +355,6 @@ func (o *InstallOptions) Validate(c *cobra.Command, args []string, f client.Fact
}
if o.NoDefaultBackupLocation {
if o.BucketName != "" {
return errors.New("Cannot use both --bucket and --no-default-backup-location at the same time")
}
@@ -375,7 +374,6 @@ func (o *InstallOptions) Validate(c *cobra.Command, args []string, f client.Fact
if o.BucketName == "" {
return errors.New("--bucket is required")
}
}
if o.UseVolumeSnapshots {