From abdef7c3267bbfc44cf1aeb5c774d2e31d6929c9 Mon Sep 17 00:00:00 2001 From: nicolas Date: Tue, 11 Aug 2015 19:01:37 +0200 Subject: [PATCH] Go FMT missing... --- agent.go | 3 +-- agent_test.go | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/agent.go b/agent.go index 2c9b778b1..ce8bb9b2b 100644 --- a/agent.go +++ b/agent.go @@ -114,9 +114,8 @@ func (a *Agent) LoadPlugins(pluginsFilter string) ([]string, error) { return nil, fmt.Errorf("Undefined but requested plugin: %s", name) } - isPluginEnabled := false - if len(filters)>0 { + if len(filters) > 0 { for _, runeValue := range filters { if runeValue != "" && strings.ToLower(runeValue) == strings.ToLower(name) { fmt.Printf("plugin [%s] is enabled (filter options)\n", name) diff --git a/agent_test.go b/agent_test.go index 21c03552e..e65cb7ae9 100644 --- a/agent_test.go +++ b/agent_test.go @@ -1,10 +1,10 @@ package telegraf import ( - "testing" "github.com/stretchr/testify/assert" + "testing" -// needing to load the plugins + // needing to load the plugins _ "github.com/influxdb/telegraf/plugins/all" ) @@ -100,4 +100,4 @@ func TestAgent_AppliesTags(t *testing.T) { err := a.crank() require.NoError(t, err) } -*/ \ No newline at end of file +*/