Commit 87575acf authored by Kirill Smelkov's avatar Kirill Smelkov

BigFile: No need to explicitly convert btree=None -> BTreeData() in PUT

Because we next pass that btree to ._read_data() and read_data()
intentionally creates empty BTreeData() when btree is initially None.
Reviewed-by: Romain Courteaud's avatarRomain Courteaud <romain@nexedi.com>
parent 4d8f0c33
......@@ -352,8 +352,6 @@ class BigFile(File):
else:
btree = self._baseGetData()
if btree is None:
btree = BTreeData()
else:
RESPONSE.setHeader('X-Explanation', 'Can not parse range')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment