cosmetic refactor

This commit is contained in:
Andre Staltz 2023-10-25 15:33:44 +03:00
parent 574d43f1a6
commit 31ed9d0036
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 3 additions and 1 deletions

View File

@ -101,8 +101,10 @@ class Algorithm {
return this.#wantNewestRange(localHave, remoteHave, goal.count)
case 'none':
default:
return EMPTY_RANGE
default:
throw new Error(`Unrecognized goal type: ${goal.type}`)
}
}