From f4c980fb534f000e5c8f5e9a126bb65d2487ea28 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sat, 21 Jul 2018 12:23:02 -0500 Subject: [PATCH] Add curly brackets for code consistency --- tools/update-codemirror-themes.js | 4 +++- tools/update-libraries.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/update-codemirror-themes.js b/tools/update-codemirror-themes.js index b6a887d0..a9679153 100644 --- a/tools/update-codemirror-themes.js +++ b/tools/update-codemirror-themes.js @@ -32,7 +32,9 @@ async function updateHook(themes) { } function exit(err) { - if (err) console.error(err); + if (err) { + console.error(err); + } process.exit(err ? 1 : 0); } diff --git a/tools/update-libraries.js b/tools/update-libraries.js index 8d05c3ea..08fe81c4 100644 --- a/tools/update-libraries.js +++ b/tools/update-libraries.js @@ -94,7 +94,9 @@ async function copy(lib, folder) { } function exit(err) { - if (err) console.error(err); + if (err) { + console.error(err); + } process.exit(err ? 1 : 0); }