Skip to content

Commit 8ee217c

Browse files
committed
MNT: more codeql warnings addressed
1 parent 9adf432 commit 8ee217c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: mpl_gui/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def show_all(self, *, block=None, timeout=None):
235235
if timeout is None:
236236
timeout = self._timeout
237237
self._ensure_all_figures_promoted()
238-
show(self.figures, block=self._block, timeout=self._timeout)
238+
show(self.figures, block=self._block, timeout=timeout)
239239

240240
# alias to easy pyplot compatibility
241241
show = show_all
@@ -312,6 +312,7 @@ def close(self, val):
312312
_FigureCanvasBase(figure=fig)
313313
assert fig.canvas.manager is None
314314
self._fig_to_number.pop(fig, None)
315+
return
315316

316317

317318
class FigureContext(FigureRegistry):

0 commit comments

Comments
 (0)