Skip to content

Commit 4ce96b7

Browse files
authored
fix: avoid code duplication by repostioning the default switch case (#356)
1 parent b86ffa0 commit 4ce96b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/webapp/app/components/run/RunOverview.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ function BlankTasks({
273273
basicStatus: RunBasicStatus;
274274
}) {
275275
switch (basicStatus) {
276+
default:
276277
case "COMPLETED":
277278
return <Paragraph variant="small">There were no tasks for this run.</Paragraph>;
278279
case "FAILED":
@@ -288,8 +289,6 @@ function BlankTasks({
288289
<TaskCardSkeleton />
289290
</div>
290291
);
291-
default:
292-
return <Paragraph variant="small">There were no tasks for this run.</Paragraph>;
293292
}
294293
}
295294

0 commit comments

Comments
 (0)