]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/database_import.py
Merge pull request #2391 from lonvia/fix-sonar-issues
[nominatim.git] / nominatim / tools / database_import.py
index efbf2ec80c0c771dbea2e71390c5ba184b782280..df82f9aaf4a6e042eae58e6dab378ed8cd422b3b 100644 (file)
@@ -130,9 +130,8 @@ def import_osm_data(osm_file, options, drop=False, ignore_errors=False):
         if drop:
             conn.drop_table('planet_osm_nodes')
 
-    if drop:
-        if options['flatnode_file']:
-            Path(options['flatnode_file']).unlink()
+    if drop and options['flatnode_file']:
+        Path(options['flatnode_file']).unlink()
 
 
 def create_tables(conn, config, reverse_only=False):