Skip to content

Commit

Permalink
Fix falsy variable reusage
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Oct 27, 2023
1 parent 8630760 commit 574958e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renumics/spotlight/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def show(
viewer = None
if port != "auto":
# reuse viewer with the same port if specified
for index, viewer in enumerate(_VIEWERS):
if viewer.port == port:
for index, viewer_ in enumerate(_VIEWERS):
if viewer_.port == port:
viewer = _VIEWERS[index]
break
if not viewer:
Expand Down

0 comments on commit 574958e

Please sign in to comment.