Skip to content

Commit 0c7165d

Browse files
fix: if-else
1 parent 2841d43 commit 0c7165d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ def show(self,
198198
# Only show in browser if no screenshot is being taken
199199
if not screenshot:
200200
self._fig.show(**kwargs)
201-
202-
203-
if screenshot:
201+
else:
204202
screenshot_str = str(screenshot)
205203
if screenshot_str.endswith('.html'):
206204
self._fig.write_html(screenshot_str)

0 commit comments

Comments
 (0)