Skip to content

Commit 7d62285

Browse files
Unnecessary lambda expression
1 parent 3011ea4 commit 7d62285

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blosc2/dict_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def to_b2z(self, overwrite=False, filename=None) -> os.PathLike[Any] | str:
392392
filepaths.append(filepath)
393393

394394
# Sort filepaths by file size from largest to smallest
395-
filepaths.sort(key=lambda f: os.path.getsize(f), reverse=True)
395+
filepaths.sort(key=os.path.getsize, reverse=True)
396396

397397
with zipfile.ZipFile(self.b2z_path, "w", zipfile.ZIP_STORED) as zf:
398398
# Write all files (except estore_path) first (sorted by size)

0 commit comments

Comments
 (0)