mirror of https://codeberg.org/pzp/pzp-goals.git
tiny refactor
This commit is contained in:
parent
e129a47912
commit
bd575b5f40
10
lib/index.js
10
lib/index.js
|
@ -86,12 +86,12 @@ module.exports = {
|
|||
* @param {{ path: string; keypair: Keypair; }} config
|
||||
*/
|
||||
init(peer, config) {
|
||||
/** @type {Map<string, Goal>} */
|
||||
const goals = new Map()
|
||||
const listen = Obz()
|
||||
// Constants:
|
||||
const EMPTY_RANGE = /** @type {Range} */ ([1, 0])
|
||||
|
||||
/** @type {Range} */
|
||||
const EMPTY_RANGE = [1, 0]
|
||||
// State:
|
||||
const goals = /** @type {Map<string, Goal>} */ (new Map())
|
||||
const listen = Obz()
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
|
Loading…
Reference in New Issue