fix golint issues in core/iox (#488)

This commit is contained in:
Kevin Wan
2021-02-19 18:40:26 +08:00
committed by GitHub
parent 0c094cb2d7
commit 1f92bfde6a
5 changed files with 17 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ func (nopCloser) Close() error {
return nil
}
// NopCloser returns a io.WriteCloser that does nothing on calling Close.
func NopCloser(w io.Writer) io.WriteCloser {
return nopCloser{w}
}