Skip to content

Commit e9ba620

Browse files
committed
MNT: use explict None return
1 parent 7ad3c9c commit e9ba620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mpl_gui/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ def close(self, val):
306306
307307
"""
308308
if val == "all":
309-
return self.close_all()
309+
self.close_all()
310+
return
310311
# or do we want to close _all_ of the figures with a given label / number?
311312
if isinstance(val, str):
312313
fig = self.by_label[val]

0 commit comments

Comments
 (0)