aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/content-address.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-30 09:59:55 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-30 09:59:55 -0500
commit974a983351283a644228b10731e4f9d2ff01e533 (patch)
tree3bff17d9d76c55180366ccb4f9f88d28642ae1f1 /src/libstore/content-address.cc
parentadb36080342488c0414a944c20c949938132e153 (diff)
Shrink diff in two places
Stuff crept in there.
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r--src/libstore/content-address.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index a98e34cb8..a51646d0f 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -17,8 +17,9 @@ std::string makeFileIngestionPrefix(FileIngestionMethod m)
return "";
case FileIngestionMethod::Recursive:
return "r:";
+ default:
+ throw Error("impossible, caught both cases");
}
- assert(false);
}
std::string makeFixedOutputCA(FileIngestionMethod method, const Hash & hash)