make handleImportCall optional

pull/7/head
Iuri Matias 7 years ago
parent c54ce861af
commit 2e2d9df377
  1. 18
      remix-solidity/src/compiler/compiler.js

@ -324,14 +324,16 @@ function Compiler (handleImportCall) {
continue continue
} }
handleImportCall(m, function (err, content) { if (handleImportCall) {
if (err) { handleImportCall(m, function (err, content) {
cb(err) if (err) {
} else { cb(err)
files[m] = { content } } else {
gatherImports(files, target, importHints, cb) files[m] = { content }
} gatherImports(files, target, importHints, cb)
}) }
})
}
return return
} }

Loading…
Cancel
Save