mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Don't call filenode.get_size() twice. refs #1634
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
200492760a
commit
346b5c4c3d
@ -30,8 +30,9 @@ def get_filenode_metadata(filenode):
|
||||
else:
|
||||
file_format = "CHK"
|
||||
metadata['format'] = file_format
|
||||
if filenode.get_size() is not None:
|
||||
metadata['size'] = filenode.get_size()
|
||||
size = filenode.get_size()
|
||||
if size is not None:
|
||||
metadata['size'] = size
|
||||
return metadata
|
||||
|
||||
class IOpHandleTable(Interface):
|
||||
|
Loading…
Reference in New Issue
Block a user