From 3a25a21b71beff257bb50b9bfccb92769a923c14 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 17 May 2018 09:48:01 -0400 Subject: [PATCH] Early return if no sol files --- lib/modules/solidity/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/modules/solidity/index.js b/lib/modules/solidity/index.js index 424ab59d2..066c22c88 100644 --- a/lib/modules/solidity/index.js +++ b/lib/modules/solidity/index.js @@ -12,6 +12,9 @@ class Solidity { } compile_solidity(contractFiles, cb) { + if (!contractFiles.length) { + return cb(); + } let self = this; let input = {}; let solcW;