mirror of
https://github.com/restic/restic.git
synced 2024-12-21 23:33:03 +00:00
Remove unnecessary argument checks
This commit is contained in:
parent
155383b1c7
commit
3f06816267
1 changed files with 0 additions and 8 deletions
|
@ -209,14 +209,6 @@ func runDump(ctx context.Context, opts DumpOptions, gopts GlobalOptions, args []
|
|||
return errors.Fatal("no file and no snapshot ID specified")
|
||||
}
|
||||
|
||||
if opts.Archive == "" && opts.Compress {
|
||||
return errors.Fatal("compressing is only supported when dumping to an archive")
|
||||
}
|
||||
|
||||
if len(args) > 2 && opts.Archive == "" {
|
||||
return errors.Fatal("multiple files can only be dumped to an archive")
|
||||
}
|
||||
|
||||
switch opts.Archive {
|
||||
case "tar", "zip":
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue