From 74551198fad8815045aaf2f9d680fce5242cc2ca Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Tue, 19 Aug 2014 12:27:42 +0200 Subject: [PATCH] Use errors.New instead of fmt.Errorf to create NoMoreBlocksErr in interleaver. --- interleaver/interfaces.go | 4 ++-- interleaver/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interleaver/interfaces.go b/interleaver/interfaces.go index 84b0c28..d70845d 100644 --- a/interleaver/interfaces.go +++ b/interleaver/interfaces.go @@ -5,12 +5,12 @@ package main import ( - "fmt" + "errors" "bitbucket.org/s_l_teichmann/mtredisalize/common" ) -var NoMoreBlocksErr = fmt.Errorf("No more blocks.") +var NoMoreBlocksErr = errors.New("No more blocks.") type ( Block struct { diff --git a/interleaver/main.go b/interleaver/main.go index 0f2c2a1..61f84b9 100644 --- a/interleaver/main.go +++ b/interleaver/main.go @@ -5,5 +5,5 @@ package main func main() { - // TODO: Implement me! + // TODO: Implement me! }