Refactor unnecessary else / elif when if block has a return statement (#413)

This commit is contained in:
0xMRTT 2022-09-13 23:39:33 +02:00 committed by GitHub
commit 9c34278725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,8 +115,7 @@ class GradienceMainWindow(Adw.ApplicationWindow):
buglog("Window close request")
self.get_application().show_exit_dialog()
return True
else:
self.close()
self.close()
def on_monet_file_chooser_response(self, widget, response):
if response == Gtk.ResponseType.ACCEPT: