mirror of https://github.com/embarklabs/embark.git
Remove ‘async’ from function name and remove comments
This commit is contained in:
parent
cba4e9fb91
commit
b8b98cd6c4
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue