Skip to content

Commit 7d5389f

Browse files
authored
fix: exception with empty user code (#1204)
1 parent 19beab2 commit 7d5389f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

client/src/components/logViewer/logParser.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ import {
99
isSourceCodeLineAfterLineWrapping,
1010
} from "./ProblemProcessor";
1111

12-
export function parseLog(
13-
logs: LogLine[],
14-
logStartFlag: string,
15-
): Problem[] | null {
12+
export function parseLog(logs: LogLine[], logStartFlag: string): Problem[] {
1613
if (logs.length === 0 || logStartFlag.trim() === "") {
17-
return null;
14+
return [];
1815
}
1916

2017
// logs cleaning

0 commit comments

Comments
 (0)