mirror of https://github.com/embarklabs/embark.git
Merge pull request #429 from embark-framework/bug_fix/no-sol
Early return if no sol files
This commit is contained in:
commit
a2d7583dab
|
@ -32,7 +32,10 @@ class Compiler {
|
|||
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);
|
||||
callback(err, compileResult);
|
||||
});
|
||||
|
|
|
@ -12,6 +12,9 @@ class Solidity {
|
|||
}
|
||||
|
||||
compile_solidity(contractFiles, cb) {
|
||||
if (!contractFiles.length) {
|
||||
return cb();
|
||||
}
|
||||
let self = this;
|
||||
let input = {};
|
||||
let solcW;
|
||||
|
|
Loading…
Reference in New Issue