From b5885a140c1ae6fa5414994df2cfd3aa6a225a0d Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 9 Aug 2020 18:26:52 -0400 Subject: [PATCH] eslint tweaks --- .../backwardsCompatibility.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 956615e26ab..cc228b13471 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -1363,16 +1363,19 @@ App.Update.slaveRecords = function(node) { App.Update.genePoolRecords = function(node) { Object.values(V.missingTable).forEach(s => { - if (!jsDef(s.mother)) + if (!jsDef(s.mother)) { s.mother = 0; - if (!jsDef(s.father)) + } + if (!jsDef(s.father)) { s.father = 0; - if (!jsDef(s.inbreedingCoeff)) + } + if (!jsDef(s.inbreedingCoeff)) { s.inbreedingCoeff = 0; + } }); - let ib_coeff = ibc.coeff_slaves(V.genePool); - V.genePool.forEach(g => {g.inbreedingCoeff = ib_coeff[g.ID]}); + let ibCoeff = ibc.coeff_slaves(V.genePool); + V.genePool.forEach(g => { g.inbreedingCoeff = ibCoeff[g.ID]; }); V.slaveIndices = slaves2indices(); // we're going to need to compare to active slaves, if they exist for (let bci = 0; bci < V.genePool.length; bci++) { -- GitLab