refactor: Decompose key checks
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package noop
|
||||
|
||||
import "io"
|
||||
|
||||
type NoOpCloser struct {
|
||||
io.Writer
|
||||
}
|
||||
|
||||
func (NoOpCloser) Close() error { return nil }
|
||||
|
||||
func AddClose(w io.Writer) NoOpCloser {
|
||||
return NoOpCloser{w}
|
||||
}
|
||||
Reference in New Issue
Block a user