Skip to content

Commit fd3f2e1

Browse files
committed
Change unused WriteCloser to Writer
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
1 parent 27226d4 commit fd3f2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/jsonlog/jsonlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (jl *JSONLog) Format(format string) (string, error) {
2525
return fmt.Sprintf("[%s] %s", jl.Created.Format(format), jl.Log), nil
2626
}
2727

28-
func WriteLog(src io.Reader, dst io.WriteCloser, format string) error {
28+
func WriteLog(src io.Reader, dst io.Writer, format string) error {
2929
dec := json.NewDecoder(src)
3030
for {
3131
l := &JSONLog{}

0 commit comments

Comments
 (0)