removed appending the sum to data since the length of data is known

pull/159/head
blockjoe 3 years ago
parent 5c4c76dd05
commit 1128330d50

@ -271,8 +271,6 @@ func (ct *Cointop) PortfolioChart() error {
sum := portfolio[i].Holdings * price
if (j + lenDelta) < baseLen {
data[j + lenDelta] += sum
} else {
data = append(data, sum)
}
}
}

Loading…
Cancel
Save