Skip to content

Commit 616f145

Browse files
committed
Fix jshint errors in gulpfile.js
1 parent e473e92 commit 616f145

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gulpfile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ function notCommentLine(line){
204204
}
205205

206206
function compareLengthLongestFirst(a, b){
207-
var result = b.length - a.length
208-
if (result == 0) {
209-
result = a.localeCompare(b)
207+
var result = b.length - a.length;
208+
if (result === 0) {
209+
result = a.localeCompare(b);
210210
}
211211
return result;
212212
}
@@ -217,7 +217,7 @@ function domainsToRegex(contents){
217217
.filter(notCommentLine)
218218
.map(dePunycodeDomain);
219219
contents = [].concat.apply([], contents);
220-
contents = contents.filter(function(s){ return !!s });
220+
contents = contents.filter(function(s){ return !!s; });
221221
contents.sort(compareLengthLongestFirst);
222222
contents = contents.join('|');
223223
contents = '/*global Autolinker */\nAutolinker.tldRegex = /(?:' + contents + ')/;\n';

0 commit comments

Comments
 (0)