From 1634ced5219c890775821ded9b0075e4989a8250 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 18 Jul 2016 16:59:37 -0700 Subject: [PATCH] shouldnt be able to override. --- ema_series.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ema_series.go b/ema_series.go index 0d37d9c..fd5eda7 100644 --- a/ema_series.go +++ b/ema_series.go @@ -31,11 +31,8 @@ func (ema EMASeries) GetYAxis() YAxisType { } // GetPeriod returns the window size. -func (ema EMASeries) GetPeriod(defaults ...int) int { +func (ema EMASeries) GetPeriod() int { if ema.Period == 0 { - if len(defaults) > 0 { - return defaults[0] - } return DefaultEMAPeriod } return ema.Period