Skip to content

Commit

Permalink
Add .vscode, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Sep 7, 2024
1 parent 30e4c3e commit 995329d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.vscode
dist
docs
*.log
Expand Down
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 4
},

"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true
}
4 changes: 2 additions & 2 deletions src/IndexedDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export class IndexedDBTransaction extends AsyncTransaction<IndexedDBStore> {
}

public async commit(): Promise<void> {
if(this.done) {
if (this.done) {
return;
}
this.done = true;
this.tx.commit();
}

public async abort(): Promise<void> {
if(this.done) {
if (this.done) {
return;
}
this.done = true;
Expand Down

0 comments on commit 995329d

Please sign in to comment.