Add line-breaks after blocks

This commit is contained in:
Harlow Ward 2016-04-30 16:21:49 -07:00
parent 8f1d408c52
commit e150d4832b

View file

@ -49,6 +49,7 @@ func urlIsRecoverableError(err error) bool {
if ok { if ok {
return true return true
} }
return false return false
} }
@ -56,9 +57,11 @@ func netIsRecoverableError(err error) bool {
recoverableErrors := map[string]bool{ recoverableErrors := map[string]bool{
"connection reset by peer": true, "connection reset by peer": true,
} }
cErr, ok := err.(*net.OpError) cErr, ok := err.(*net.OpError)
if ok && recoverableErrors[cErr.Err.Error()] == true { if ok && recoverableErrors[cErr.Err.Error()] == true {
return true return true
} }
return false return false
} }