From 8dd52a1ea0125d16cee65299996c0bc4a2ffbaa5 Mon Sep 17 00:00:00 2001 From: Cory LaNou Date: Tue, 3 Feb 2015 15:08:47 -0700 Subject: [PATCH] removing duplicate error check --- cmd/influx/main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/influx/main.go b/cmd/influx/main.go index 3abcb16ca6..2031989e9d 100644 --- a/cmd/influx/main.go +++ b/cmd/influx/main.go @@ -207,11 +207,6 @@ func (c *CommandLine) executeQuery(query string) { fmt.Printf("ERR: %s\n", err) return } - if err != nil { - fmt.Printf("ERR: %s\n", err) - return - } - c.FormatResults(results, os.Stdout) if results.Error() != nil && c.Database == "" { fmt.Println("Warning: It is possible this error is due to not setting a database.")