Skip to content

Commit 415ff56

Browse files
committed
mcp: add comment about nil write in unit tests
1 parent f41256c commit 415ff56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (r rwc) Close() error {
303303
rcErr := r.rc.Close()
304304

305305
var wcErr error
306-
if r.wc != nil {
306+
if r.wc != nil { // we only allow a nil writer in unit tests
307307
wcErr = r.wc.Close()
308308
}
309309

0 commit comments

Comments
 (0)