Skip to content

Commit 84034f9

Browse files
committed
fix: use cached parent resource instead of redundant parent() call
Signed-off-by: Om Santosh Suneri <[email protected]>
1 parent 210c91e commit 84034f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packagedcode/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def assemble(cls, package_data, resource, codebase, package_adder):
125125
workspace_root = package_resource.parent(codebase)
126126
workspace_root_path = None
127127
if workspace_root:
128-
workspace_root_path = package_resource.parent(codebase).path
128+
workspace_root_path = workspace_root.path
129129
workspaces = pkg_data.extra_data.get('workspaces') or []
130130

131131
# Also look for pnpm workspaces

0 commit comments

Comments
 (0)