From 2412fa36fe42d51ae6fcf6dfc8daea1f3cdea9b2 Mon Sep 17 00:00:00 2001 From: Dimava Date: Fri, 12 Jun 2020 00:52:28 +0300 Subject: [PATCH] lint-autofix --- src/js/game/colors.js | 1 - src/js/game/map_chunk.js | 6 +----- src/js/game/shapes.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/js/game/colors.js b/src/js/game/colors.js index e42bafcd..14440071 100644 --- a/src/js/game/colors.js +++ b/src/js/game/colors.js @@ -155,7 +155,6 @@ const mix = enumColorMixingResults; initColors(); export function initColors() { - for (let c1 in allColorData) { let data = allColorData[c1]; assert(data); diff --git a/src/js/game/map_chunk.js b/src/js/game/map_chunk.js index ba4c39ef..32313a8d 100644 --- a/src/js/game/map_chunk.js +++ b/src/js/game/map_chunk.js @@ -164,11 +164,7 @@ export class MapChunk { let weights = {}; for (let s in allShapeData) { const data = allShapeData[s]; - if ( - data.disabled || - !data.spawnable || - distanceToOriginInChunks < data.minDistance - ) { + if (data.disabled || !data.spawnable || distanceToOriginInChunks < data.minDistance) { continue; } const chance = Math_round( diff --git a/src/js/game/shapes.js b/src/js/game/shapes.js index 238a42d0..9c75225f 100644 --- a/src/js/game/shapes.js +++ b/src/js/game/shapes.js @@ -110,7 +110,7 @@ export function initShapes() { for (let k in enumShortcodeToSubShape) { delete enumShortcodeToSubShape[k]; } - + for (let s in allShapeData) { let data = allShapeData[s]; assert(data.id == s);