Skip to content

Commit

Permalink
Merge pull request #306 from exside/patch-1
Browse files Browse the repository at this point in the history
batch.clear() improvement
  • Loading branch information
kriszyp authored Sep 24, 2024
2 parents 7b4ebef + a894aa0 commit 1e0cb64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion write.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ class Batch extends Array {
this.push({ type: 'del', key });
}
clear() {
this.splice(0, this.length);
this.length = 0;
}
write(callback) {
return this.callback(this, callback);
Expand Down

0 comments on commit 1e0cb64

Please sign in to comment.