Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 21, 2015
1 parent 52fc7e2 commit 1a61d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/gameinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ GameInfo.prototype.checkRequiredFiles = (function() {
checks = checks.concat(gameChecks);
}

var fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath);
fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath);
for (var ii = 0; ii < fileNames.length && foundCount < checks.length; ++ii) {
var fileName = fileNames[ii].replace(/\\/g, '/');
checks.forEach(function(check, ndx) { // eslint-disable-line
Expand Down
5 changes: 3 additions & 2 deletions management/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var install = function(releasePath, opt_destPath, opt_options) {
var gameId = runtimeInfo.originalGameId;
var safeGameId = releaseUtils.safeishName(gameId);
var destBasePath;
var exePath;

var fileExists = {};
entries.forEach(function(entry) {
Expand All @@ -142,7 +143,7 @@ var install = function(releasePath, opt_destPath, opt_options) {
// that are "installed" do.
log("checking gametype: " + hftInfo.gameType);
if (hftInfo.gameType.toLowerCase() === "unity3d") {
var exePath = platformInfo.exePath;
exePath = platformInfo.exePath;
if (exePath) {
exePath = strings.replaceParams(exePath, { gameId: safeGameId });
if (!fileExists[exePath]) {
Expand Down Expand Up @@ -234,7 +235,7 @@ var install = function(releasePath, opt_destPath, opt_options) {

// Set the executable bit
if (hftInfo.gameType.toLowerCase() === "unity3d") {
var exePath = platformInfo.exePath;
exePath = platformInfo.exePath;
if (exePath) {
exePath = path.join(destBasePath, strings.replaceParams(exePath, { gameId: safeGameId }));
if (!fs.existsSync(exePath)) {
Expand Down

0 comments on commit 1a61d42

Please sign in to comment.