Eslint rule for block curlies (#3955)

* Add curly rule

* Fix pre-existing issues with new rule
This commit is contained in:
Jaco Greeff
2016-12-23 16:43:13 +01:00
committed by Gav Wood
parent 466f84f485
commit 714298aa9a
20 changed files with 306 additions and 121 deletions

View File

@@ -113,7 +113,10 @@ export default class VerificationStore {
@action setCode = (code) => {
const { contract, account } = this;
if (!contract || !account || code.length === 0) return;
if (!contract || !account || code.length === 0) {
return;
}
const confirm = contract.functions.find((fn) => fn.name === 'confirm');
const options = { from: account };