Minor reformatting.
This commit is contained in:
@@ -91,7 +91,10 @@ func (m *Math) Refresh(ctx context.Context) (err error) {
|
||||
days := now.Sub(c.StartingDate).Hours() / 24
|
||||
c.CDPR = CDPR(days, c.Gain)
|
||||
if c.CDPR > 1 {
|
||||
c.Projections = ProjectDates(now, float64(m.CurrentPrice), c.CDPR, m.Goals)
|
||||
c.Projections = ProjectDates(
|
||||
now, float64(m.CurrentPrice),
|
||||
c.CDPR, m.Goals,
|
||||
)
|
||||
} else {
|
||||
c.Projections.Dates = nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user