Format code appropriately
This commit is contained in:
@@ -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} })
|
||||
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user