dotcloud/docker

View on GitHub
pkg/tarsum/writercloser.go

Summary

Maintainability
A
0 mins
Test Coverage
package tarsum // import "github.com/docker/docker/pkg/tarsum"

import (
    "io"
)

type writeCloseFlusher interface {
    io.WriteCloser
    Flush() error
}

type nopCloseFlusher struct {
    io.Writer
}

func (n *nopCloseFlusher) Close() error {
    return nil
}

func (n *nopCloseFlusher) Flush() error {
    return nil
}