From 43769e711d37a4f670786545630139a2d926dc76 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Sat, 8 Jan 2022 00:42:32 +0500 Subject: [PATCH] fix: bug removed, log is clean now --- api/src/controllers/internal/Execution.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/src/controllers/internal/Execution.ts b/api/src/controllers/internal/Execution.ts index 38cb88d..417e548 100644 --- a/api/src/controllers/internal/Execution.ts +++ b/api/src/controllers/internal/Execution.ts @@ -106,9 +106,7 @@ ${program}` await delay(50) } - const log = - ((await fileExists(logPath)) ? await readFile(logPath) : '') + - session.crashed + const log = (await fileExists(logPath)) ? await readFile(logPath) : '' const webout = (await fileExists(weboutPath)) ? await readFile(weboutPath) : ''