Skip to content

Commit 80ebaa9

Browse files
committed
remove unneeded else block
1 parent 5dfc291 commit 80ebaa9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ def background_color(self):
178178
"""Color of the background as an RGB hex number."""
179179
if not self.transparent_background:
180180
return self.palette[0]
181-
else:
182-
return None
181+
return None
183182

184183
@background_color.setter
185184
def background_color(self, new_color):

0 commit comments

Comments
 (0)