From 750e7b6a57b70762c103d70fa3ffaa454586eddb Mon Sep 17 00:00:00 2001 From: Alexandr Morozov Date: Mon, 22 Sep 2014 10:54:58 +0400 Subject: [PATCH] Change unused WriteCloser to Writer Signed-off-by: Alexandr Morozov Upstream-commit: fd3f2e175fa6ddb606d2c681ff86a97faccfebbd Component: engine --- components/engine/pkg/jsonlog/jsonlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/pkg/jsonlog/jsonlog.go b/components/engine/pkg/jsonlog/jsonlog.go index ecf4457cf9..ce9c1bb767 100644 --- a/components/engine/pkg/jsonlog/jsonlog.go +++ b/components/engine/pkg/jsonlog/jsonlog.go @@ -25,7 +25,7 @@ func (jl *JSONLog) Format(format string) (string, error) { return fmt.Sprintf("[%s] %s", jl.Created.Format(format), jl.Log), nil } -func WriteLog(src io.Reader, dst io.WriteCloser, format string) error { +func WriteLog(src io.Reader, dst io.Writer, format string) error { dec := json.NewDecoder(src) for { l := &JSONLog{}