Skip to content

Commit

Permalink
fix: exception with empty user code (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnwwu authored Sep 18, 2024
1 parent 19beab2 commit 7d5389f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client/src/components/logViewer/logParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ import {
isSourceCodeLineAfterLineWrapping,
} from "./ProblemProcessor";

export function parseLog(
logs: LogLine[],
logStartFlag: string,
): Problem[] | null {
export function parseLog(logs: LogLine[], logStartFlag: string): Problem[] {
if (logs.length === 0 || logStartFlag.trim() === "") {
return null;
return [];
}

// logs cleaning
Expand Down

0 comments on commit 7d5389f

Please sign in to comment.