Skip to content

Commit

Permalink
remove unused writer.isIndexer prop
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Sep 19, 2024
1 parent a4bcf38 commit 0abc80c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1090,13 +1090,9 @@ module.exports = class Autobase extends ReadyResource {

if (data) {
w.isRemoved = data.isRemoved
w.isIndexer = data.isIndexer
w.isActiveIndexer = !!data.isIndexer
} else {
w.isRemoved = true
w.isIndexer = false
}

if (!w.isIndexer) {
w.isActiveIndexer = false
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = class Writer extends ReadyResource {
this.range = null
this.nodes = new NodeBuffer(length)
this.node = null
this.isIndexer = false
this.isActiveIndexer = false
this.available = length
this.length = length
Expand Down

0 comments on commit 0abc80c

Please sign in to comment.