From 4c390a622137b34687866ce0ec937b8dd54a3c1a Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 16 Dec 2016 11:58:15 -0800 Subject: [PATCH] clean - code style --- test/unit/config-manager-test.js | 7 +++---- ui/app/app.js | 4 ---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js index 4283c516c..409a7b3f7 100644 --- a/test/unit/config-manager-test.js +++ b/test/unit/config-manager-test.js @@ -1,13 +1,12 @@ const assert = require('assert') const extend = require('xtend') -const STORAGE_KEY = 'metamask-persistance-key' -var configManagerGen = require('../lib/mock-config-manager') -var configManager -var testList const rp = require('request-promise') const nock = require('nock') +var configManagerGen = require('../lib/mock-config-manager') +const STORAGE_KEY = 'metamask-persistance-key' describe('config-manager', function() { + var configManager beforeEach(function() { window.localStorage = {} // Hacking localStorage support into JSDom diff --git a/ui/app/app.js b/ui/app/app.js index aa0b814d2..422b3739c 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -432,10 +432,6 @@ App.prototype.renderPrimary = function () { return h(NoticeScreen, {key: 'NoticeScreen'}) } - if (!props.noActiveNotices) { - return h(NoticeScreen, {key: 'NoticeScreen'}) - } - // show current view switch (props.currentView.name) { case 'EthStoreWarning':