Skip to content

Commit 76e40ba

Browse files
committed
had a return without a value.
1 parent b742348 commit 76e40ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_rgb_display/rgb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def pixel(self, xpos, ypos, color=None):
8686
"""Read or write a pixel."""
8787
if color is None:
8888
return self._decode_pixel(self._block(xpos, ypos, xpos, ypos))
89-
if not 0 <= xpos < self.width or not 0 <= ypos < self.height:
90-
return
91-
self._block(xpos, ypos, xpos, ypos, self._encode_pixel(color))
89+
90+
if 0 <= xpos < self.width and 0 <= ypos < self.height:
91+
self._block(xpos, ypos, xpos, ypos, self._encode_pixel(color))
9292
return None
9393

9494
#pylint: disable-msg=too-many-arguments

0 commit comments

Comments
 (0)