Skip to content

Commit cc39407

Browse files
committed
Don't use else after throw and formatting fixes
1 parent b5c98ad commit cc39407

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/osm2pgsql.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static void check_attributes(properties_t const &properties, options_t *options)
165165
}
166166

167167
static void check_and_update_flat_node_file(properties_t *properties,
168-
options_t *options)
168+
options_t *options)
169169
{
170170
auto const flat_node_file_from_import =
171171
properties->get_string("flat_node_file", "");
@@ -187,7 +187,9 @@ static void check_and_update_flat_node_file(properties_t *properties,
187187
throw fmt_error("Database was imported without flat node file. Can"
188188
" not use flat node file '{}' now.",
189189
options->flat_node_file);
190-
} else if (absolute_path == flat_node_file_from_import) {
190+
}
191+
192+
if (absolute_path == flat_node_file_from_import) {
191193
log_info("Using flat node file '{}' (same as on import).",
192194
flat_node_file_from_import);
193195
} else {
@@ -198,7 +200,6 @@ static void check_and_update_flat_node_file(properties_t *properties,
198200
properties->set_string("flat_node_file", absolute_path, true);
199201
}
200202
}
201-
202203
}
203204

204205
static void check_prefix(properties_t const &properties, options_t *options)

0 commit comments

Comments
 (0)