Skip to content

Commit d439486

Browse files
committed
lint
1 parent eac83f2 commit d439486

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

cli/cmds/make-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var makeRelease = function(args) {
6363
}, []);
6464
if (badPlatforms.length) {
6565
utils.badArgs(module, "unknown platforms: " + badPlatforms.join(", "));
66-
return reject();
66+
return reject(); // eslint-disable-line
6767
}
6868
}
6969

lib/backup-file.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright 2014, Gregg Tavares.
33
* All rights reserved.
44
*
@@ -29,6 +29,8 @@
2929
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131

32+
"use strict";
33+
3234
var fs = require('fs');
3335
var path = require('path');
3436

@@ -44,7 +46,7 @@ function backup(filename, options) {
4446
}
4547

4648
function makeSrcName(num) {
47-
return num == 1 ? filename : makeBackupName(num - 1);
49+
return num === 1 ? filename : makeBackupName(num - 1);
4850
}
4951

5052
function copyFileSync(src, dst) {

management/make-controller-bundle.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
"use strict";
3232

3333
var debug = require('debug')('make');
34-
var buildInfo = require('./build-info');
35-
var exporter = require('./exporter');
3634
var fs = require('fs');
3735
var gameInfo = require('../lib/gameinfo');
3836
var path = require('path');
@@ -132,11 +130,10 @@ var makeHTML = function(runtimeInfo, gamePath, destFolder/*, options*/) {
132130
return makeZip(runtimeInfo.originalGameId, gamePath, destPath, filter);
133131
};
134132

135-
var makeUnity3d = function(runtimeInfo, gamePath, destFolder, options) {
133+
var makeUnity3d = function(runtimeInfo, gamePath, destFolder/*, options*/) {
136134
var gameId = runtimeInfo.originalGameId;
137135

138136
var ignoreFilter = readdirtree.makeIgnoreFilter(runtimeInfo.info.happyFunTimes.ignore);
139-
var promises = [];
140137
var destPath = path.join(destFolder, releaseUtils.safeishName(gameId) + ".controller.zip");
141138
var binStart = "bin/";
142139
var excludeRE = /^(src|Assets(?!\/WebPlayerTemplates)|Library|ProjectSettings|Temp)\//i;

public/hft/0.x.x/scripts/misc/touch.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ define(
374374
var setupButtons = function(options) {
375375
var buttonInfos = [];
376376
var buttons = options.buttons;
377-
var expirationTime = 2000; // 2 seconds, 2000ms
377+
//var expirationTime = 2000; // 2 seconds, 2000ms
378378

379379
// I don't really know what to make this number
380380
// If the person has steady hands they can make
@@ -421,18 +421,18 @@ define(
421421
// sometimes it seems we miss an out/up event and buttons
422422
// get stuck. So, for a particlar id, if no event has come in
423423
// for a while assume it was released.
424-
var expireOldButtons = function() {
425-
var now = Date.now();
426-
buttonInfos.forEach(function(buttonInfo) {
427-
Object.keys(buttonInfo.pointerIds).forEach(function(pointerId) {
428-
var timeStamp = buttonInfo.pointerIds[pointerId];
429-
var age = now - timeStamp;
430-
if (age > expirationTime) {
431-
removePointerId(buttonInfo, pointerId);
432-
}
433-
});
434-
});
435-
};
424+
//var expireOldButtons = function() {
425+
// var now = Date.now();
426+
// buttonInfos.forEach(function(buttonInfo) {
427+
// Object.keys(buttonInfo.pointerIds).forEach(function(pointerId) {
428+
// var timeStamp = buttonInfo.pointerIds[pointerId];
429+
// var age = now - timeStamp;
430+
// if (age > expirationTime) {
431+
// removePointerId(buttonInfo, pointerId);
432+
// }
433+
// });
434+
// });
435+
//};
436436

437437
var handleButtonDown = function(e, buttonInfo) {
438438
addPointerId(buttonInfo, e.pointerId, e.timeStamp);
@@ -442,7 +442,7 @@ define(
442442
addPointerId(buttonInfo, e.pointerId, e.timeStamp);
443443
};
444444

445-
var handleButtonMove = function(e, buttonInfo) {
445+
var handleButtonMove = function(/*e, buttonInfo*/) {
446446
// addPointerId(buttonInfo, e.pointerId, e.timeStamp);
447447
};
448448

server/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ var config = require('../lib/config');
5656
var log = require('../lib/log');
5757
var Promise = require('promise');
5858
var optionator = require('optionator')(optionSpec);
59+
var settings;
5960

6061
try {
6162
var args = optionator.parse(process.argv);
@@ -82,7 +83,7 @@ if (args.help) {
8283
log.config(args);
8384
config.setup(args);
8485
if (args.settings) {
85-
var settings = config.getSettings().settings;
86+
settings = config.getSettings().settings;
8687
args.settings.split(',').forEach(function(setting) {
8788
var keyValue = setting.split('=');
8889
var key = keyValue[0];
@@ -95,7 +96,7 @@ if (args.settings) {
9596
});
9697
}
9798
if (args.port) {
98-
var settings = config.getSettings().settings;
99+
settings = config.getSettings().settings;
99100
settings.port = args.port;
100101
}
101102

0 commit comments

Comments
 (0)