Remove ‘async’ from function name and remove comments

This commit is contained in:
emizzle 2018-08-27 13:19:07 +10:00 committed by Pascal Precht
parent cba4e9fb91
commit b8b98cd6c4
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import {combineReducers} from 'redux'; import {combineReducers} from 'redux';
import {REQUEST, SUCCESS} from "../actions"; import {REQUEST, SUCCESS} from "../actions";
//import entitiesDefaultState from "../api/entities";
const BN_FACTOR = 10000; const BN_FACTOR = 10000;
const voidAddress = '0x0000000000000000000000000000000000000000'; const voidAddress = '0x0000000000000000000000000000000000000000';

View File

@ -24,7 +24,7 @@ class Solidity {
this.compile_solidity_code(input, {}, true, (errors, compilationResult) => { this.compile_solidity_code(input, {}, true, (errors, compilationResult) => {
// write code to filesystem so we can view the source after page refresh // write code to filesystem so we can view the source after page refresh
const className = !compilationResult ? 'temp' : Object.keys(compilationResult).join('_'); 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); if(err) this.logger.trace('Error writing fiddle to filesystem: ', err);
}); // async, do not need to wait }); // 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) => { fs.mkdirp('.embark/fiddles', (err) => {
if(err) return cb(err); if(err) return cb(err);