Skip to content

Commit 1a61d42

Browse files
committed
lint
1 parent 52fc7e2 commit 1a61d42

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/gameinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ GameInfo.prototype.checkRequiredFiles = (function() {
298298
checks = checks.concat(gameChecks);
299299
}
300300

301-
var fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath);
301+
fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath);
302302
for (var ii = 0; ii < fileNames.length && foundCount < checks.length; ++ii) {
303303
var fileName = fileNames[ii].replace(/\\/g, '/');
304304
checks.forEach(function(check, ndx) { // eslint-disable-line

management/install.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ var install = function(releasePath, opt_destPath, opt_options) {
130130
var gameId = runtimeInfo.originalGameId;
131131
var safeGameId = releaseUtils.safeishName(gameId);
132132
var destBasePath;
133+
var exePath;
133134

134135
var fileExists = {};
135136
entries.forEach(function(entry) {
@@ -142,7 +143,7 @@ var install = function(releasePath, opt_destPath, opt_options) {
142143
// that are "installed" do.
143144
log("checking gametype: " + hftInfo.gameType);
144145
if (hftInfo.gameType.toLowerCase() === "unity3d") {
145-
var exePath = platformInfo.exePath;
146+
exePath = platformInfo.exePath;
146147
if (exePath) {
147148
exePath = strings.replaceParams(exePath, { gameId: safeGameId });
148149
if (!fileExists[exePath]) {
@@ -234,7 +235,7 @@ var install = function(releasePath, opt_destPath, opt_options) {
234235

235236
// Set the executable bit
236237
if (hftInfo.gameType.toLowerCase() === "unity3d") {
237-
var exePath = platformInfo.exePath;
238+
exePath = platformInfo.exePath;
238239
if (exePath) {
239240
exePath = path.join(destBasePath, strings.replaceParams(exePath, { gameId: safeGameId }));
240241
if (!fs.existsSync(exePath)) {

0 commit comments

Comments
 (0)