mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 19:54:00 +00:00
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:
committed by
GitHub
parent
14f31eed8c
commit
1fd28e8a36
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user