Portals-list code cleanup, change four to two space line indent
This commit is contained in:
@ -89,11 +89,12 @@ window.plugin.portalslist.getPortals = function(){
|
||||
//get shield informations
|
||||
var shields = [];
|
||||
$.each(d.portalV2.linkedModArray, function(ind, mod) {
|
||||
if (mod)
|
||||
if (mod) {
|
||||
//shields[ind] = mod.rarity.capitalize().replace('_', ' ');
|
||||
shields[ind] = [mod.rarity.substr(0,1).capitalize(), getPlayerName(mod.installingUser)] ;
|
||||
else
|
||||
} else {
|
||||
shields[ind] = ['', ''];
|
||||
}
|
||||
});
|
||||
|
||||
var APgain= getAttackApGain(d).enemyAp;
|
||||
@ -193,7 +194,7 @@ window.plugin.portalslist.portalTable = function(sortBy, sortOrder, filter) {
|
||||
retVal = b[sortBy] - a[sortBy];
|
||||
break;
|
||||
}
|
||||
if (sortOrder > 0) { retVal = -retVal} //thx @jonatkins
|
||||
if (sortOrder > 0) retVal = -retVal; //thx @jonatkins
|
||||
return retVal;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user