Skip to content

Commit 376a0c9

Browse files
committed
🎨 Remove unused os.path.join()
1 parent d9679ba commit 376a0c9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/termux_language_server/utils.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ def get_query(name: str, filetype: str = "bash") -> Query:
2727
if name not in QUERIES:
2828
with open(
2929
os.path.join(
30-
os.path.join(
31-
os.path.join(os.path.dirname(__file__), "assets"),
32-
"queries",
33-
),
30+
os.path.dirname(__file__),
31+
"assets",
32+
"queries",
3433
f"{name}{os.path.extsep}scm",
3534
)
3635
) as f:
@@ -49,10 +48,9 @@ def get_schema(filetype: FILETYPE) -> dict[str, Any]:
4948
"""
5049
if filetype not in SCHEMAS:
5150
file = os.path.join(
52-
os.path.join(
53-
os.path.join(os.path.dirname(__file__), "assets"),
54-
"json",
55-
),
51+
os.path.dirname(__file__),
52+
"assets",
53+
"json",
5654
f"{filetype}.json",
5755
)
5856
with open(file) as f:

0 commit comments

Comments
 (0)