Skip to content

Commit 302cbe7

Browse files
committed
🤖 Fix: Mark unused runtime parameter with underscore prefix
ESLint requires unused parameters to be prefixed with underscore. The runtime parameter is kept for API consistency even though it's not used after removing the SSH bypass. _Generated with `cmux`_
1 parent b644868 commit 302cbe7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/services/tools/fileCommon.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function validateFileSize(stats: FileStat): { error: string } | null {
6464
export function validateNoRedundantPrefix(
6565
filePath: string,
6666
cwd: string,
67-
runtime: Runtime
67+
_runtime: Runtime
6868
): { error: string } | null {
6969
// Only check absolute paths (start with /) - relative paths are fine
7070
// This works for both local and SSH since both use Unix-style paths
@@ -79,10 +79,7 @@ export function validateNoRedundantPrefix(
7979
// Check if the absolute path starts with the cwd
8080
// Use startsWith + check for path separator to avoid partial matches
8181
// e.g., /workspace/project should match /workspace/project/src but not /workspace/project2
82-
if (
83-
normalizedPath === normalizedCwd ||
84-
normalizedPath.startsWith(normalizedCwd + "/")
85-
) {
82+
if (normalizedPath === normalizedCwd || normalizedPath.startsWith(normalizedCwd + "/")) {
8683
// Calculate what the relative path would be
8784
const relativePath =
8885
normalizedPath === normalizedCwd ? "." : normalizedPath.substring(normalizedCwd.length + 1);

0 commit comments

Comments
 (0)