Format code appropriately

This commit is contained in:
Regan Kuchan 2015-11-30 16:40:47 -08:00
parent cd5bcce2c2
commit 9e663d74da
2 changed files with 15 additions and 18 deletions

View File

@ -1,8 +1,8 @@
package trig
import (
"math"
"fmt"
"math"
"github.com/influxdb/telegraf/plugins"
)
@ -43,7 +43,6 @@ func (s *Trig) Gather(acc plugins.Accumulator) error {
return nil
}
func init() {
plugins.Add("Trig", func() plugins.Plugin { return &Trig{x: 0.0} })

View File

@ -1,9 +1,9 @@
package trig
import (
"testing"
"math"
"fmt"
"math"
"testing"
"github.com/influxdb/telegraf/testutil"
"github.com/stretchr/testify/assert"
@ -15,7 +15,6 @@ func TestTrig(t *testing.T) {
Amplitude: 10.0,
}
for i := 0.0; i < 10.0; i++ {
var acc testutil.Accumulator
@ -35,4 +34,3 @@ func TestTrig(t *testing.T) {
}
}