From 4795fac5acf17987afa90e2fc696ed9e73ba3afb Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 16 Jan 2024 11:20:21 +0000 Subject: [PATCH] fix(aurora): use elif instead of if --- aurora/configuration/menus/overrides.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aurora/configuration/menus/overrides.py b/aurora/configuration/menus/overrides.py index fbb9bb1..7094777 100644 --- a/aurora/configuration/menus/overrides.py +++ b/aurora/configuration/menus/overrides.py @@ -19,7 +19,7 @@ class Overrides(ui.View): current_setting = await config.user(self.ctx.author).auto_evidenceformat() if current_setting is False: await config.user(self.ctx.author).auto_evidenceformat.clear() - if current_setting is None: + elif current_setting is None: await config.user(self.ctx.author).auto_evidenceformat.set(True) else: await config.user(self.ctx.author).auto_evidenceformat.set(False) @@ -34,7 +34,7 @@ class Overrides(ui.View): current_setting = await config.user(self.ctx.author).history_ephemeral() if current_setting is False: await config.user(self.ctx.author).history_ephemeral.clear() - if current_setting is None: + elif current_setting is None: await config.user(self.ctx.author).history_ephemeral.set(True) else: await config.user(self.ctx.author).history_ephemeral.set(False) @@ -49,7 +49,7 @@ class Overrides(ui.View): current_setting = await config.user(self.ctx.author).history_inline() if current_setting is False: await config.user(self.ctx.author).history_inline.clear() - if current_setting is None: + elif current_setting is None: await config.user(self.ctx.author).history_inline.set(True) else: await config.user(self.ctx.author).history_inline.set(False)