Skip to content

Commit f1d022a

Browse files
author
Test
committed
chore: format stories and ipcMain
Change-Id: Iedbd83e34c43761d8b66aab2d53282accb3b2b25 Signed-off-by: Test <test@example.com>
1 parent f437b2f commit f1d022a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/browser/App.stories.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,12 @@ export const ActiveWorkspaceWithChat: Story = {
11391139
executeScript: () =>
11401140
Promise.resolve({
11411141
success: true,
1142-
data: { success: true, output: "Mock script output", exitCode: 0, wall_duration_ms: 150 },
1142+
data: {
1143+
success: true,
1144+
output: "Mock script output",
1145+
exitCode: 0,
1146+
wall_duration_ms: 150,
1147+
},
11431148
}),
11441149
listScripts: () =>
11451150
Promise.resolve({

src/node/services/ipcMain.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,11 @@ export class IpcMain {
12451245

12461246
try {
12471247
// Validate scriptName doesn't contain path separators (prevent path traversal)
1248-
if (scriptName.includes("/") || scriptName.includes("\\") || scriptName.includes("..")) {
1248+
if (
1249+
scriptName.includes("/") ||
1250+
scriptName.includes("\\") ||
1251+
scriptName.includes("..")
1252+
) {
12491253
return Err(
12501254
`Invalid script name: ${scriptName}. Script names must not contain path separators.`
12511255
);

0 commit comments

Comments
 (0)