run gosimple in gometalinter

This commit is contained in:
Marten Seemann 2018-02-22 08:48:12 +08:00
parent 286a51bcc0
commit 81974d30d6
13 changed files with 23 additions and 24 deletions

View file

@ -124,7 +124,7 @@ func (s *receiveStream) Read(p []byte) (int, error) {
} else {
select {
case <-s.readChan:
case <-time.After(deadline.Sub(time.Now())):
case <-time.After(time.Until(deadline)):
}
}
s.mutex.Lock()