We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d744f2f commit a7a60b1Copy full SHA for a7a60b1
1 file changed
src/node-persistent-cache.cpp
@@ -4,6 +4,8 @@
4
#include "node-persistent-cache.hpp"
5
#include "options.hpp"
6
7
+#include <cassert>
8
+
9
void node_persistent_cache::set(osmid_t id, osmium::Location location)
10
{
11
m_index->set(static_cast<osmium::unsigned_object_id_type>(id), location);
@@ -17,10 +19,7 @@ osmium::Location node_persistent_cache::get(osmid_t id) const noexcept
17
19
18
20
node_persistent_cache::node_persistent_cache(const options_t *options)
21
- if (options->flat_node_file.empty()) {
- throw std::runtime_error{"Unable to set up persistent cache: the name "
22
- "of the flat node file was not set."};
23
- }
+ assert(!options->flat_node_file.empty());
24
25
m_fname = options->flat_node_file.c_str();
26
m_remove_file = options->droptemp;
0 commit comments