lint warnings

pull/255/merge
Darien Raymond 8 years ago
parent 4e224d64c6
commit f1a9647c8a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -278,7 +278,7 @@ func (v *Connection) Read(b []byte) (int, error) {
return 0, io.EOF
}
duration := time.Duration(time.Minute)
duration := time.Minute
if !v.rd.IsZero() {
duration = v.rd.Sub(time.Now())
if duration < 0 {
@ -314,7 +314,7 @@ func (v *Connection) Write(b []byte) (int, error) {
}
}
duration := time.Duration(time.Minute)
duration := time.Minute
if !v.wd.IsZero() {
duration = v.wd.Sub(time.Now())
if duration < 0 {

Loading…
Cancel
Save