shouldnt be able to override.

This commit is contained in:
Will Charczuk 2016-07-18 16:59:37 -07:00
parent 034bef0118
commit 1634ced521

View file

@ -31,11 +31,8 @@ func (ema EMASeries) GetYAxis() YAxisType {
} }
// GetPeriod returns the window size. // GetPeriod returns the window size.
func (ema EMASeries) GetPeriod(defaults ...int) int { func (ema EMASeries) GetPeriod() int {
if ema.Period == 0 { if ema.Period == 0 {
if len(defaults) > 0 {
return defaults[0]
}
return DefaultEMAPeriod return DefaultEMAPeriod
} }
return ema.Period return ema.Period