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
|
* @param {{ path: string; keypair: Keypair; }} config
|
||||||
*/
|
*/
|
||||||
init(peer, config) {
|
init(peer, config) {
|
||||||
/** @type {Map<string, Goal>} */
|
// Constants:
|
||||||
const goals = new Map()
|
const EMPTY_RANGE = /** @type {Range} */ ([1, 0])
|
||||||
const listen = Obz()
|
|
||||||
|
|
||||||
/** @type {Range} */
|
// State:
|
||||||
const EMPTY_RANGE = [1, 0]
|
const goals = /** @type {Map<string, Goal>} */ (new Map())
|
||||||
|
const listen = Obz()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|
Loading…
Reference in New Issue