From b8b98cd6c466bd3477be82d5cb782320c8733393 Mon Sep 17 00:00:00 2001 From: emizzle Date: Mon, 27 Aug 2018 13:19:07 +1000 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=98async=E2=80=99=20from=20funct?= =?UTF-8?q?ion=20name=20and=20remove=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- embark-ui/src/reducers/index.js | 1 - lib/modules/solidity/index.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/embark-ui/src/reducers/index.js b/embark-ui/src/reducers/index.js index 15209cf7..0c698dcc 100644 --- a/embark-ui/src/reducers/index.js +++ b/embark-ui/src/reducers/index.js @@ -1,6 +1,5 @@ import {combineReducers} from 'redux'; import {REQUEST, SUCCESS} from "../actions"; -//import entitiesDefaultState from "../api/entities"; const BN_FACTOR = 10000; const voidAddress = '0x0000000000000000000000000000000000000000'; diff --git a/lib/modules/solidity/index.js b/lib/modules/solidity/index.js index 67b928e4..4aec0dda 100644 --- a/lib/modules/solidity/index.js +++ b/lib/modules/solidity/index.js @@ -24,7 +24,7 @@ class Solidity { this.compile_solidity_code(input, {}, true, (errors, compilationResult) => { // write code to filesystem so we can view the source after page refresh const className = !compilationResult ? 'temp' : Object.keys(compilationResult).join('_'); - this._writeFiddleToFileAsync(req.body.code, className, Boolean(compilationResult), (err) => { + this._writeFiddleToFile(req.body.code, className, Boolean(compilationResult), (err) => { if(err) this.logger.trace('Error writing fiddle to filesystem: ', err); }); // async, do not need to wait @@ -36,7 +36,7 @@ class Solidity { ); } - _writeFiddleToFileAsync(code, className, isCompiled, cb){ + _writeFiddleToFile(code, className, isCompiled, cb){ fs.mkdirp('.embark/fiddles', (err) => { if(err) return cb(err);