Skip to content

Commit 0e3a4e5

Browse files
author
Daniel Stockman
committed
Fix various lint errors.
1 parent ad48892 commit 0e3a4e5

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ exports.start = function (json, options, buildCallback) {
139139
exports.start(json2, options);
140140
});
141141
} else {
142-
log.error('hitting the brakes, your ' + buildFileName + ' file is invalid, please fix it!');
142+
log.error('hitting the brakes, your ' + options.buildFileName + ' file is invalid, please fix it!');
143143
}
144144
} else {
145145
exports.start(json, options);

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ exports.init = function (opts, initCallback) {
6767
buildFile = options['yui-module'] ? options['yui-module'] : path.join(CWD, 'build.json');
6868
}
6969

70-
globalBuildDir = false;
7170
buildRunning = true;
7271

7372
buildFileName = path.basename(buildFile);

lib/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var Stack = require('./stack').Stack,
5050
'line-break': 6000
5151
};
5252
} else {
53-
compressorFn = 'jsminify',
53+
compressorFn = 'jsminify';
5454
compressorConfig = {
5555
callback: function (e) {
5656
log.err('compression failed');
@@ -844,7 +844,7 @@ var _rollup = function (mod, name, options, callback) {
844844
modName = mod.name || name,
845845
fileName = mod.basefilename || name,
846846
postfix = "@YUIGLOBALVAR@.add('" + modName + "', function (@YUIVAR@, NAME) {" +
847-
(options.strict ? '"use strict"; ' : "") + "}, '@VERSION@'" + stringify(mod.config) + ");\n";
847+
(options.strict ? '"use strict"; ' : "") + "}, '@VERSION@'" + stringify(mod.config) + ");\n",
848848
regex = (typeof mod.regex !== 'undefined') ? mod.regex : globalRegex,
849849
files = [];
850850

0 commit comments

Comments
 (0)