Skip to content

Commit 92476ab

Browse files
committed
BUG: Use less ambiguous conditional check
1 parent ee6ddff commit 92476ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itkwidgets/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def run(self, ctx):
7070
result = await _get_viewer_image(data)
7171
elif render_type is RenderType.POINT_SET:
7272
result = await _get_viewer_point_sets(data)
73-
if not result:
73+
if result is None:
7474
result = data
7575
self.init_data[key] = result
7676

0 commit comments

Comments
 (0)