lint is king

pull/3094/head
Iuri Matias 7 years ago
parent e981a602de
commit a4a4bfae2f
  1. 9
      remix-solidity/src/compiler/compiler.js

@ -72,9 +72,9 @@ function Compiler (handleImportCall) {
function onInternalCompilerLoaded () { function onInternalCompilerLoaded () {
if (worker === null) { if (worker === null) {
var compiler; var compiler
if (typeof(window) == 'undefined') { if (typeof (window) === 'undefined') {
compiler = require('solc'); compiler = require('solc')
} else { } else {
compiler = solc(window.Module) compiler = solc(window.Module)
} }
@ -100,7 +100,8 @@ function Compiler (handleImportCall) {
onCompilerLoaded(compiler.version()) onCompilerLoaded(compiler.version())
} }
} }
this.onInternalCompilerLoaded = onInternalCompilerLoaded; // exposed for use in node // exposed for use in node
this.onInternalCompilerLoaded = onInternalCompilerLoaded
this.lastCompilationResult = { this.lastCompilationResult = {
data: null, data: null,

Loading…
Cancel
Save