Skip to content

Commit 00bd1ca

Browse files
Melissa LeBlanc-WilliamsMelissa LeBlanc-Williams
Melissa LeBlanc-Williams
authored and
Melissa LeBlanc-Williams
committed
Removed len() from check
1 parent 5c3cbde commit 00bd1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def label(self):
146146

147147
@label.setter
148148
def label(self, newtext):
149-
if self._label and len(self.group) > 0 and (self.group[-1] == self._label):
149+
if self._label and self.group and (self.group[-1] == self._label):
150150
self.group.pop()
151151

152152
self._label = None

0 commit comments

Comments
 (0)