Bug 1167056 - Fix broken indentation. r=gwagner

This commit is contained in:
Alexandre Lissy 2015-05-20 22:42:00 -04:00
parent 1d7787e953
commit 461e034c13

View File

@ -376,32 +376,32 @@ SpecialPowersObserverAPI.prototype = {
return;
}
case "inject-app":
{
{
let aAppId = aMessage.json.appId;
let aApp = aMessage.json.app;
let aApp = aMessage.json.app;
let keys = Object.keys(Webapps.DOMApplicationRegistry.webapps);
let exists = keys.indexOf(aAppId) !== -1;
if (exists) {
let exists = keys.indexOf(aAppId) !== -1;
if (exists) {
return false;
}
}
Webapps.DOMApplicationRegistry.webapps[aAppId] = aApp;
return true;
}
case "reject-app":
{
return true;
}
case "reject-app":
{
let aAppId = aMessage.json.appId;
let keys = Object.keys(Webapps.DOMApplicationRegistry.webapps);
let exists = keys.indexOf(aAppId) !== -1;
if (!exists) {
let exists = keys.indexOf(aAppId) !== -1;
if (!exists) {
return false;
}
}
delete Webapps.DOMApplicationRegistry.webapps[aAppId];
return true;
}
return true;
}
default:
throw new SpecialPowersError("Invalid operation for SPWebAppsService");
}