mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-18 00:00:00 +08:00
style: remove trailing whitespace in path_scope.py
This commit is contained in:
1 parent
ac60c3a42d
commit
49a4f27d14
1 file changed
+1
-1
+1
-1
@@ -65,7 +65,7 @@ class WorkspacePathScope:
|
|||||||
elif not any(_is_windows_absolute(str(root)) for root in self.roots):
|
elif not any(_is_windows_absolute(str(root)) for root in self.roots):
|
||||||
# Even on Windows, deny if no roots are Windows absolute paths (edge case)
|
# Even on Windows, deny if no roots are Windows absolute paths (edge case)
|
||||||
return PathScopeDecision(False, 'windows absolute path is outside workspace scope', str(candidate), raw)
|
return PathScopeDecision(False, 'windows absolute path is outside workspace scope', str(candidate), raw)
|
||||||
|
|
||||||
base = Path(cwd).expanduser().resolve(strict=False) if cwd else self.roots[0]
|
base = Path(cwd).expanduser().resolve(strict=False) if cwd else self.roots[0]
|
||||||
path = Path(raw)
|
path = Path(raw)
|
||||||
if not path.is_absolute():
|
if not path.is_absolute():
|
||||||
|
|||||||
Reference in new issue
Block a user