Browse Source

Remove superfluous conditional

tags/nilmdb-2.0.0
Jim Paris 4 years ago
parent
commit
a1218fd20b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      nilmdb/server/bulkdata.py

+ 3
- 2
nilmdb/server/bulkdata.py View File

@@ -590,8 +590,9 @@ class Table(object):
# Not connected; append previous and start again # Not connected; append previous and start again
merged.append(prev) merged.append(prev)
prev = new prev = new
if prev is not None:
merged.append(prev)
# Last range we were looking at goes into the file. We know
# there was at least one (the one we just removed).
merged.append(prev)


# If the range covered the whole file, we can delete it now. # If the range covered the whole file, we can delete it now.
# Note that the last file in a table may be only partially # Note that the last file in a table may be only partially


Loading…
Cancel
Save