From 60ebbee3ede25cc6a7cdd0330b82bcc139cd9c0a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 2 Jun 2016 21:52:39 +0100 Subject: [PATCH] Standard: include curly brackets in branches as required --- src/app.js | 6 +- src/app/compiler.js | 40 ++++++++----- src/app/editor.js | 6 +- src/app/gist-handler.js | 4 +- src/app/query-params.js | 4 +- src/app/renderer.js | 55 +++++++++++------ src/app/storage-handler.js | 16 +++-- src/universal-dapp.js | 120 +++++++++++++++++++++++++------------ src/web3-adapter.js | 5 +- 9 files changed, 171 insertions(+), 85 deletions(-) diff --git a/src/app.js b/src/app.js index 76629e0e0e..e0991efe5f 100644 --- a/src/app.js +++ b/src/app.js @@ -40,8 +40,9 @@ var run = function () { loadFiles(files); }; - if (filesToLoad !== null) + if (filesToLoad !== null) { loadFiles(filesToLoad); + } // ------------------ query params (hash) ---------------- @@ -133,8 +134,9 @@ var run = function () { 'To which other browser-solidity instance do you want to copy over all files?', 'https://ethereum.github.io/browser-solidity/' ); - if (target === null) + if (target === null) { return; + } var files = editor.packageFiles(); var iframe = $('