Merge pull request #430 from embark-framework/bug_fix/dev-early-return-no-sol
Early return if no sol files Dev
This commit is contained in:
commit
be0da47c54
|
@ -32,7 +32,10 @@ class Compiler {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
compiler.call(compiler, matchingFiles || [], function (err, compileResult) {
|
if (!matchingFiles || !matchingFiles.length) {
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
compiler.call(compiler, matchingFiles, function (err, compileResult) {
|
||||||
Object.assign(compiledObject, compileResult);
|
Object.assign(compiledObject, compileResult);
|
||||||
callback(err, compileResult);
|
callback(err, compileResult);
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,6 +12,9 @@ class Solidity {
|
||||||
}
|
}
|
||||||
|
|
||||||
compile_solidity(contractFiles, cb) {
|
compile_solidity(contractFiles, cb) {
|
||||||
|
if (!contractFiles.length) {
|
||||||
|
return cb();
|
||||||
|
}
|
||||||
let self = this;
|
let self = this;
|
||||||
let input = {};
|
let input = {};
|
||||||
let solcW;
|
let solcW;
|
||||||
|
|
Loading…
Reference in New Issue