Skip to content

Commit 918391e

Browse files
committed
improve readability
1 parent 87fb1c1 commit 918391e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arango/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _ensure_key_in_body(self, body: Json, index: Optional[int] = None) -> Json:
189189
body = body.copy()
190190
body["_key"] = doc_id[len(self._id_prefix) :]
191191
return body
192-
elif index:
192+
elif index is not None:
193193
body = body.copy()
194194
body["_key"] = str(index)
195195
return body

0 commit comments

Comments
 (0)