1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: require explicit return none (#8060)

This commit is contained in:
Daniel Däschle
2021-01-12 11:43:55 +01:00
committed by GitHub
parent 33976246c8
commit 3289dff7ff
10 changed files with 16 additions and 13 deletions

View File

@ -89,6 +89,7 @@ pub fn (c TcpConn) read_ptr(buf_ptr byteptr, len int) ?int {
} else {
wrap_error(code) ?
}
return none
}
pub fn (c TcpConn) read(mut buf []byte) ?int {