From 1632c81fc7471a11d979294411042f38e2fbfeec Mon Sep 17 00:00:00 2001 From: Xavi Ramirez Date: Thu, 10 Aug 2017 19:20:55 +0000 Subject: [PATCH] Use errors.New instead of fmt.Errorf --- batchconsumer/batcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batchconsumer/batcher.go b/batchconsumer/batcher.go index 83d3a47..06e8dca 100644 --- a/batchconsumer/batcher.go +++ b/batchconsumer/batcher.go @@ -1,13 +1,13 @@ package batchconsumer import ( - "fmt" + "errors" "time" "github.com/Clever/amazon-kinesis-client-go/kcl" ) -var ErrBatchFull = fmt.Errorf("The batch is full") +var ErrBatchFull = errors.New("The batch is full") type batcher struct { flushCount int