mirror of
https://github.com/clearlinux/docker.git
synced 2026-05-13 18:23:53 +00:00
Change unused WriteCloser to Writer
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user