Skip to content

Commit

Permalink
Merge pull request #5119 from timvandermeij/strict-equalities-other
Browse files Browse the repository at this point in the history
Use strict equalities in make.js, external/* and extensions/*
  • Loading branch information
Snuffleupagus committed Aug 1, 2014
2 parents 00eea3d + c29faaa commit 2cd49b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/chromium/pdfHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion extensions/firefox/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion external/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion make.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2cd49b5

Please sign in to comment.