Skip to content

Commit e70a44d

Browse files
philippjfrrmorshea
authored andcommitted
Correct implementation
1 parent a8b4909 commit e70a44d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

idom/client/manage.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def web_module_exists(package_name: str) -> bool:
3737
def web_module_names() -> Set[str]:
3838
names = []
3939
for pth in WEB_MODULES_DIR.glob("**/*.js"):
40-
for rel_pth in pth.relative_to(WEB_MODULES_DIR):
41-
if Path("common") not in rel_pth.parents:
42-
continue
43-
module_path = str(rel_pth.as_posix())
44-
if module_path.endswith('.js'):
45-
module_path = module_path[:-3]
46-
names.append(module_path)
40+
rel_pth = pth.relative_to(WEB_MODULES_DIR)
41+
if Path("common") in rel_pth.parents:
42+
continue
43+
module_path = str(rel_pth.as_posix())
44+
if module_path.endswith('.js'):
45+
module_path = module_path[:-3]
46+
names.append(module_path)
4747
return set(names)
4848

4949

0 commit comments

Comments
 (0)