Skip to content

Commit

Permalink
fix(linter): merge duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 2, 2024
1 parent a9d4ac1 commit cb77ca9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions qgis_deployment_toolbelt/shortcuts/shortcuts_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,7 @@ def startmenu_path(self) -> Path | None:
"""
if opersys == "win32":
return Path(shell.SHGetFolderPath(0, shellcon.CSIDL_PROGRAMS, None, 0))
elif opersys == "linux":
if isinstance(self.homedir_path, Path):
return self.homedir_path / ".local/share/applications"
return None
elif opersys == "darwin":
elif opersys in ("darwin", "linux"):
if isinstance(self.homedir_path, Path):
return self.homedir_path / ".local/share/applications"
return None
Expand Down

0 comments on commit cb77ca9

Please sign in to comment.