Refactor unnecessary else / elif when if block has a return statement

This commit is contained in:
deepsource-autofix[bot] 2022-09-13 21:31:17 +00:00 committed by GitHub
parent c7bc91ee58
commit ce924f6f32
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: