a/bindings: Simplify as suggested by IDE

This commit is contained in:
Ryan Pavlik 2021-04-27 11:00:57 -05:00
parent 5a7412e86d
commit d8cf72f6d9

View file

@ -83,7 +83,7 @@ class Profile:
for feature in self.features:
for path in feature.to_monado_paths():
length = len(path)
if (length in self.by_length):
if length in self.by_length:
self.by_length[length].append(path)
else:
self.by_length[length] = [path]