Skip to content

Commit c29faaa

Browse files
committed
Use strict equalities in make.js, external/* and extensions/*
1 parent 00eea3d commit c29faaa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

extensions/chromium/pdfHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function isPdfDownloadable(details) {
3636
}
3737
// Display the PDF viewer regardless of the Content-Disposition header
3838
// if the file is displayed in the main frame.
39-
if (details.type == 'main_frame') {
39+
if (details.type === 'main_frame') {
4040
return false;
4141
}
4242
var cdHeader = (details.responseHeaders &&

extensions/firefox/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function startup(aData, aReason) {
145145
}
146146

147147
function shutdown(aData, aReason) {
148-
if (aReason == APP_SHUTDOWN) {
148+
if (aReason === APP_SHUTDOWN) {
149149
return;
150150
}
151151
var ioService = Services.io;

external/builder/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function getWorkerSrcFiles(filePath) {
227227
try {
228228
var files = JSON.parse(match[1].replace(/'/g, '"'));
229229
var srcFiles = files.filter(function(name) {
230-
return name.indexOf('external') == -1;
230+
return name.indexOf('external') === -1;
231231
});
232232
var externalSrcFiles = files.filter(function(name) {
233233
return name.indexOf('external') > -1;

make.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ target.mozcentralcheck = function() {
12091209
echo('Please specify MC_PATH variable');
12101210
exit(1);
12111211
}
1212-
if ((mcPath[0] != '/' && mcPath[0] != '~' && mcPath[1] != ':') ||
1212+
if ((mcPath[0] !== '/' && mcPath[0] !== '~' && mcPath[1] !== ':') ||
12131213
!test('-d', mcPath)) {
12141214
echo('mozilla-central path is not in absolute form or does not exist.');
12151215
exit(1);

0 commit comments

Comments
 (0)