Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeanAsad committed Oct 31, 2023
1 parent 94142ee commit 4e1703a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,9 @@ export class Saturn {
let fallbackCount = 0
const nodes = this.nodes
for (let i = 0; i < nodes.length; i++) {
if (skipNodes) {
if (fallbackCount > this.opts.fallbackLimit || skipNodes) {
break
}
if (fallbackCount > this.opts.fallbackLimit) {
return
}
if (opts.raceNodes) {
opts.nodes = nodes.slice(i, i + Saturn.defaultRaceCount)
} else {
Expand Down

0 comments on commit 4e1703a

Please sign in to comment.