Skip to content

Commit 79274b8

Browse files
committed
server: Remove unnecessary stateCR transition from dataReader.Read
1 parent 92b0bc5 commit 79274b8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

data.go

-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ func (r *dataReader) Read(b []byte) (n int, err error) {
101101
r.state = stateDot
102102
continue
103103
}
104-
if c == '\r' {
105-
r.state = stateCR
106-
}
107104
r.state = stateData
108105
case stateDot:
109106
if c == '\r' {

0 commit comments

Comments
 (0)