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,7 +115,6 @@ class GradienceMainWindow(Adw.ApplicationWindow):
buglog("Window close request") buglog("Window close request")
self.get_application().show_exit_dialog() self.get_application().show_exit_dialog()
return True return True
else:
self.close() self.close()
def on_monet_file_chooser_response(self, widget, response): def on_monet_file_chooser_response(self, widget, response):