Skip to content

Commit 916a46d

Browse files
committed
MNT: more codeql warnings addressed
1 parent e9ba620 commit 916a46d

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
@@ -250,7 +250,7 @@ def show_all(self, *, block=None, timeout=None):
250250
if timeout is None:
251251
timeout = self._timeout
252252
self._ensure_all_figures_promoted()
253-
display(*self.figures, block=self._block, timeout=self._timeout)
253+
display(*self.figures, block=self._block, timeout=timeout)
254254

255255
# alias to easy pyplot compatibility
256256
show = show_all
@@ -327,6 +327,7 @@ def close(self, val):
327327
_FigureCanvasBase(figure=fig)
328328
assert fig.canvas.manager is None
329329
self._fig_to_number.pop(fig, None)
330+
return
330331

331332

332333
class FigureContext(FigureRegistry):

0 commit comments

Comments
 (0)