Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed Jan 21, 2021
1 parent bb55ace commit b365150
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stormdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class StormDB {
let data = this.state;
for (let i = 0; i < this.pointers.length; i++) {
if (i < this.pointers.length - 1 && !data[this.pointers[i]]) {
throw new Error("Can't run .value() on non-existant property of non-existant object.");
throw new Error(
"Can't run .value() on non-existant property of non-existant object."
);
}
data = data[this.pointers[i]];
}
Expand Down

0 comments on commit b365150

Please sign in to comment.