Skip to content

Commit

Permalink
🎨 Remove unused os.path.join()
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Mar 10, 2024
1 parent d25bc93 commit fc57204
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/zathura_language_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ def get_query(name: str, filetype: FILETYPE = "zathurarc") -> Query:
if name not in QUERIES:
with open(
os.path.join(
os.path.join(
os.path.join(os.path.dirname(__file__), "assets"),
"queries",
),
os.path.dirname(__file__),
"assets",
"queries",
f"{name}{os.path.extsep}scm",
)
) as f:
Expand All @@ -49,10 +48,9 @@ def get_schema(filetype: FILETYPE = "zathurarc") -> dict[str, Any]:
"""
if filetype not in SCHEMAS:
file = os.path.join(
os.path.join(
os.path.join(os.path.dirname(__file__), "assets"),
"json",
),
os.path.dirname(__file__),
"assets",
"json",
f"{filetype}.json",
)
with open(file) as f:
Expand Down

0 comments on commit fc57204

Please sign in to comment.