From 3f068162670dbc427960e2cc5e6f2f45f64dfdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillipp=20R=C3=B6ll?= Date: Sun, 15 Sep 2024 19:00:05 +0200 Subject: [PATCH] Remove unnecessary argument checks --- cmd/restic/cmd_dump.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index 88f3886e4..02d2ea48f 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -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: