Skip to content

Commit 86ff3d6

Browse files
committed
owpaintdata: Simplify code
1 parent a1e5451 commit 86ff3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/data/owpaintdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def __init__(self):
797797
self.class_model.rowsInserted.connect(self._class_count_changed)
798798
self.class_model.rowsRemoved.connect(self._class_count_changed)
799799

800-
if self.data is None or not len(self.data):
800+
if not self.data:
801801
self.data = []
802802
self.__buffer = np.zeros((0, 3))
803803
elif isinstance(self.data, np.ndarray):

0 commit comments

Comments
 (0)