From d42a34b3425d6549dec16f382e0cd831e8a2f116 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 15 Dec 2017 17:30:29 -0500 Subject: [PATCH] comply with eslint --- .eslintrc.json | 2 +- lib/contracts/deploy.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1b9735180..85c5a5962 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,7 +17,7 @@ ], "array-callback-return": "off", "array-element-newline": "off", - "arrow-body-style": "error", + "arrow-body-style": "off", "arrow-parens": "off", "arrow-spacing": [ "error", diff --git a/lib/contracts/deploy.js b/lib/contracts/deploy.js index bb001314b..1123117eb 100644 --- a/lib/contracts/deploy.js +++ b/lib/contracts/deploy.js @@ -81,10 +81,10 @@ class Deploy { let code = codeGenerator.generateContracts(false, true, true); let cmds = contract.onDeploy.join(';\n'); - let _cmds = "" - _cmds += "__mainContext.__loadManagerInstance.execWhenReady(function() {" + let _cmds = ""; + _cmds += "__mainContext.__loadManagerInstance.execWhenReady(function() {"; _cmds += cmds; - _cmds += "});" + _cmds += "});"; RunCode.doEval(context + "\n" + code + "\n" + _cmds, self.web3); }