From 8f230736dc11c4ea4158af993fc87216762112d5 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 1 Oct 2016 13:47:16 +0800 Subject: [PATCH] code climate --- frontend/src/Metamaps/AutoLayout.js | 4 +--- frontend/src/Metamaps/PasteInput.js | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/Metamaps/AutoLayout.js b/frontend/src/Metamaps/AutoLayout.js index e0835473..f3e91440 100644 --- a/frontend/src/Metamaps/AutoLayout.js +++ b/frontend/src/Metamaps/AutoLayout.js @@ -1,5 +1,3 @@ -import Active from './Active' - const AutoLayout = { nextX: 0, nextY: 0, @@ -61,7 +59,7 @@ const AutoLayout = { } } }, - coordsTaken: function(x, y, map) { + coordsTaken: function (x, y, map) { const mappings = map.getMappings() if (mappings.findWhere({ xloc: x, yloc: y })) { return true diff --git a/frontend/src/Metamaps/PasteInput.js b/frontend/src/Metamaps/PasteInput.js index 272ac030..bc20ec43 100644 --- a/frontend/src/Metamaps/PasteInput.js +++ b/frontend/src/Metamaps/PasteInput.js @@ -65,8 +65,7 @@ const PasteInput = { // just try to see if CSV works Import.handleCSV(text) } - }, - + } } export default PasteInput