Skip to content

Commit 654783c

Browse files
committed
Small cleanup for init logic.
1 parent a3365ba commit 654783c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ export class App extends LitElement {
126126

127127
// Spot check if the format is as expected.
128128
if (this.records.length && this.records[0].bugIds == null) {
129-
this.error = "Unexpected or outdated format.";
130-
return;
129+
throw new Error("Unexpected or outdated format.");
131130
}
132131
// Sort so most recently modified records are at the top.
133132
this.records.sort((a, b) => b.last_modified - a.last_modified);

0 commit comments

Comments
 (0)