diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-19 20:22:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 20:22:36 +0200 |
commit | 984e521392b3f41f7cdab203e5c00f3e00e27a28 (patch) | |
tree | c63ca1c6b5d879a60b985bfa04f03b065d407594 /src/nix-prefetch-url/nix-prefetch-url.cc | |
parent | 424bb5819f736af7413c343d462663474222eaac (diff) | |
parent | 68294746aeb1d23d2859e5ccc1a0c971cd7d5120 (diff) |
Merge pull request #3650 from obsidiansystems/no-hash-type-unknown
Remove `HashType::htUnknown`
Diffstat (limited to 'src/nix-prefetch-url/nix-prefetch-url.cc')
-rw-r--r-- | src/nix-prefetch-url/nix-prefetch-url.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nix-prefetch-url/nix-prefetch-url.cc b/src/nix-prefetch-url/nix-prefetch-url.cc index 55b72bda6..40b05a2f3 100644 --- a/src/nix-prefetch-url/nix-prefetch-url.cc +++ b/src/nix-prefetch-url/nix-prefetch-url.cc @@ -72,8 +72,6 @@ static int _main(int argc, char * * argv) else if (*arg == "--type") { string s = getArg(*arg, arg, end); ht = parseHashType(s); - if (ht == htUnknown) - throw UsageError("unknown hash type '%1%'", s); } else if (*arg == "--print-path") printPath = true; |