mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-06 09:37:52 +00:00
Refactor unnecessary else
/ elif
when if
block has a return
statement (#485)
This commit is contained in:
commit
7e0386bf2a
1 changed files with 35 additions and 38 deletions
|
@ -194,7 +194,6 @@ class FirefoxGnomeThemePlugin(IPlugin):
|
||||||
if len(profiles) == 0:
|
if len(profiles) == 0:
|
||||||
print("No profiles found")
|
print("No profiles found")
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
self.css = self.css.format(
|
self.css = self.css.format(
|
||||||
d_1=self.palette["dark_"]["1"],
|
d_1=self.palette["dark_"]["1"],
|
||||||
d_2=self.palette["dark_"]["2"],
|
d_2=self.palette["dark_"]["2"],
|
||||||
|
@ -224,9 +223,7 @@ class FirefoxGnomeThemePlugin(IPlugin):
|
||||||
b_blk=self.palette["dark_"]["1"],
|
b_blk=self.palette["dark_"]["1"],
|
||||||
)
|
)
|
||||||
for profile in profiles:
|
for profile in profiles:
|
||||||
profile = (
|
profile = profile / "chrome" / "firefox-gnome-theme" / "customChrome.css"
|
||||||
profile / "chrome" / "firefox-gnome-theme" / "customChrome.css"
|
|
||||||
)
|
|
||||||
if profile.exists():
|
if profile.exists():
|
||||||
if self.custom_settings["overwrite"]:
|
if self.custom_settings["overwrite"]:
|
||||||
with open(profile, "w", encoding="utf-8") as f:
|
with open(profile, "w", encoding="utf-8") as f:
|
||||||
|
|
Loading…
Reference in a new issue