Skip to content

Commit

Permalink
remove unused condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Feb 11, 2025
1 parent d0dfae1 commit 7a4a226
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,7 @@ class Hypercore extends EventEmitter {
get signedLength () {
if (this.opened === false) return 0
if (this.state === this.core.state) return this.core.state.length
const flushed = this.state.flushedLength()

return flushed === -1 ? this.state.length : flushed
return this.state.flushedLength()
}

/**
Expand Down

0 comments on commit 7a4a226

Please sign in to comment.