1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-06 09:34:05 +00:00

Settings default to null instead of adding null to function

This commit is contained in:
DJ1TJOO 2021-03-11 19:00:44 +01:00
parent d887439966
commit 86aba0d08a

View File

@ -324,7 +324,7 @@ export class AchievementCollection {
* @param {string} key - Maps to an Achievement * @param {string} key - Maps to an Achievement
* @param {any} data - Data received from signal dispatches for validation * @param {any} data - Data received from signal dispatches for validation
*/ */
unlock(key, data) { unlock(key, data = null) {
if (!this.map.has(key)) { if (!this.map.has(key)) {
return; return;
} }
@ -594,7 +594,7 @@ export class AchievementCollection {
/** @param {Achievement} achievement */ /** @param {Achievement} achievement */
initStore100Unique({ key }) { initStore100Unique({ key }) {
this.unlock(key, null); this.unlock(key);
} }
/** @returns {boolean} */ /** @returns {boolean} */
@ -604,7 +604,7 @@ export class AchievementCollection {
/** @param {Achievement} achievement */ /** @param {Achievement} achievement */
initStoreShape({ key }) { initStoreShape({ key }) {
this.unlock(key, null); this.unlock(key);
} }
/** @returns {boolean} */ /** @returns {boolean} */