Merge pull request #5119 from timvandermeij/strict-equalities-other
Use strict equalities in make.js, external/* and extensions/*
This commit is contained in:
commit
2cd49b52f7
@ -36,7 +36,7 @@ function isPdfDownloadable(details) {
|
||||
}
|
||||
// Display the PDF viewer regardless of the Content-Disposition header
|
||||
// if the file is displayed in the main frame.
|
||||
if (details.type == 'main_frame') {
|
||||
if (details.type === 'main_frame') {
|
||||
return false;
|
||||
}
|
||||
var cdHeader = (details.responseHeaders &&
|
||||
|
2
extensions/firefox/bootstrap.js
vendored
2
extensions/firefox/bootstrap.js
vendored
@ -145,7 +145,7 @@ function startup(aData, aReason) {
|
||||
}
|
||||
|
||||
function shutdown(aData, aReason) {
|
||||
if (aReason == APP_SHUTDOWN) {
|
||||
if (aReason === APP_SHUTDOWN) {
|
||||
return;
|
||||
}
|
||||
var ioService = Services.io;
|
||||
|
2
external/builder/builder.js
vendored
2
external/builder/builder.js
vendored
@ -227,7 +227,7 @@ function getWorkerSrcFiles(filePath) {
|
||||
try {
|
||||
var files = JSON.parse(match[1].replace(/'/g, '"'));
|
||||
var srcFiles = files.filter(function(name) {
|
||||
return name.indexOf('external') == -1;
|
||||
return name.indexOf('external') === -1;
|
||||
});
|
||||
var externalSrcFiles = files.filter(function(name) {
|
||||
return name.indexOf('external') > -1;
|
||||
|
2
make.js
2
make.js
@ -1209,7 +1209,7 @@ target.mozcentralcheck = function() {
|
||||
echo('Please specify MC_PATH variable');
|
||||
exit(1);
|
||||
}
|
||||
if ((mcPath[0] != '/' && mcPath[0] != '~' && mcPath[1] != ':') ||
|
||||
if ((mcPath[0] !== '/' && mcPath[0] !== '~' && mcPath[1] !== ':') ||
|
||||
!test('-d', mcPath)) {
|
||||
echo('mozilla-central path is not in absolute form or does not exist.');
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user