From 71c46e831e6c3b9ae50467df612da8ab9d43ad1a Mon Sep 17 00:00:00 2001 From: Mozok Evgen Date: Fri, 26 Apr 2024 12:53:55 +0300 Subject: [PATCH] Code style fix --- playable_ad/gulpfile.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/playable_ad/gulpfile.js b/playable_ad/gulpfile.js index 2d4f3d6..81dbb01 100644 --- a/playable_ad/gulpfile.js +++ b/playable_ad/gulpfile.js @@ -178,26 +178,26 @@ function javaIsInstalled(cb) { function fetchBobVersionInfo(cb) { if (options["engine-sha1"] == undefined) { https - .get(bobJarVersionInfoUrl, function (res) { - res.setEncoding("utf8"); + .get(bobJarVersionInfoUrl, function (res) { + res.setEncoding("utf8"); - let body = ""; - res.on("data", function (data) { - body += data; - }); - res.on("end", function () { - bobJarVersionInfo = JSON.parse(body); + let body = ""; + res.on("data", function (data) { + body += data; + }); + res.on("end", function () { + bobJarVersionInfo = JSON.parse(body); - if (!/^[a-f0-9]{40}$/i.test(bobJarVersionInfo.sha1)) { - throw "Invalid bob.jar SHA-1."; - } + if (!/^[a-f0-9]{40}$/i.test(bobJarVersionInfo.sha1)) { + throw "Invalid bob.jar SHA-1."; + } - cb(); + cb(); + }); + }) + .on("error", function (e) { + cb(e); }); - }) - .on("error", function (e) { - cb(e); - }); } else { bobJarVersionInfo = { sha1: options["engine-sha1"]