Linting fix

This commit is contained in:
Colin McLeod
2015-07-07 11:30:38 -07:00
parent 3ad35992fc
commit 44152116b4

View File

@@ -210,12 +210,13 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
* @return {number} The index of the slot in ship.internal
*/
Ship.prototype.findInternalByGroup = function(group) {
var index;
if (group == 'sg' || group == 'psg') {
var index = _.findIndex(this.internal, function(slot) {
index = _.findIndex(this.internal, function(slot) {
return slot.c && (slot.c.grp == 'sg' || slot.c.grp == 'psg');
});
} else {
var index = _.findIndex(this.internal, function(slot) {
index = _.findIndex(this.internal, function(slot) {
return slot.c && slot.c.grp == group;
});
}