Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 57522e9

Browse files
committed
chore: remove logging
1 parent 16c2301 commit 57522e9

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

src/index.js

+3-15
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class IdbDatastore extends Adapter {
5959
}
6060

6161
if (!this._tx) {
62-
console.info('creating new tx') // eslint-disable-line no-console
6362
let cleanup
6463

6564
// idb gives us an `tx.done` promise, but awaiting on it then doing other
@@ -80,25 +79,14 @@ class IdbDatastore extends Adapter {
8079
})
8180

8281
const tx = this.store.transaction(this.location, 'readwrite')
83-
tx.oncomplete = () => {
84-
console.info('complete') // eslint-disable-line no-console
85-
cleanup()
86-
}
87-
tx.onerror = (err) => {
88-
console.info('error', err) // eslint-disable-line no-console
89-
cleanup()
90-
}
91-
tx.onabort = (err) => {
92-
console.info('abort', err) // eslint-disable-line no-console
93-
cleanup()
94-
}
82+
tx.oncomplete = cleanup
83+
tx.onerror = cleanup
84+
tx.onabort = cleanup
9585

9686
this._tx = {
9787
tx,
9888
done
9989
}
100-
} else {
101-
console.info('reusing existing tx') // eslint-disable-line no-console
10290
}
10391

10492
// we only operate on one object store so the tx.store property is set

0 commit comments

Comments
 (0)