Skip to content

Commit 432206f

Browse files
committed
More readable condition
1 parent b7abe3e commit 432206f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linode_api4/objects/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def _populate(self, json):
422422
if prop is None:
423423
prop_key, prop = self.properties_with_alias[api_key]
424424

425-
if prop.relationship and not json[api_key] is None:
425+
if prop.relationship and json[api_key] is not None:
426426
if isinstance(json[api_key], list):
427427
objs = []
428428
for d in json[api_key]:

0 commit comments

Comments
 (0)