Skip to content

Commit

Permalink
Change unused WriteCloser to Writer
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
  • Loading branch information
LK4D4 committed Sep 22, 2014
1 parent 27226d4 commit fd3f2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jsonlog/jsonlog.go
Expand Up @@ -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{}
Expand Down

0 comments on commit fd3f2e1

Please sign in to comment.