Fix coding style in extensions/firefox/bootstrap.js

This commit is contained in:
Jonas Jenwald 2014-03-22 21:48:00 +01:00
parent 597d388930
commit 2b5fb59b67

View File

@ -51,8 +51,9 @@ function setStringPref(pref, value) {
} }
function log(str) { function log(str) {
if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false)) if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false)) {
return; return;
}
dump(str + '\n'); dump(str + '\n');
} }
@ -101,8 +102,9 @@ Factory.prototype = {
// nsIFactory // nsIFactory
createInstance: function createInstance(aOuter, iid) { createInstance: function createInstance(aOuter, iid) {
if (aOuter !== null) if (aOuter !== null) {
throw Cr.NS_ERROR_NO_AGGREGATION; throw Cr.NS_ERROR_NO_AGGREGATION;
}
return (new (this._targetConstructor)()).QueryInterface(iid); return (new (this._targetConstructor)()).QueryInterface(iid);
}, },
@ -150,8 +152,9 @@ function startup(aData, aReason) {
} }
function shutdown(aData, aReason) { function shutdown(aData, aReason) {
if (aReason == APP_SHUTDOWN) if (aReason == APP_SHUTDOWN) {
return; return;
}
var ioService = Services.io; var ioService = Services.io;
var resProt = ioService.getProtocolHandler('resource') var resProt = ioService.getProtocolHandler('resource')
.QueryInterface(Ci.nsIResProtocolHandler); .QueryInterface(Ci.nsIResProtocolHandler);