Don't call filenode.get_size() twice. refs #1634

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2014-10-10 20:36:08 +01:00
parent 200492760a
commit 346b5c4c3d

View File

@ -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):