crypto/tls: minor refactors for readability

Change-Id: I93e73f16474b4b31f7097af2f9479822dfc34c5c
Reviewed-on: https://go-review.googlesource.com/20678
Reviewed-by: Adam Langley <agl@golang.org>
This commit is contained in:
Emmanuel Odeke 2016-03-14 03:35:13 -06:00 committed by Adam Langley
parent ed447ce705
commit 15b10f5314
5 changed files with 33 additions and 39 deletions

View file

@ -1316,11 +1316,8 @@ func (m *certificateRequestMsg) unmarshal(data []byte) bool {
m.certificateAuthorities = append(m.certificateAuthorities, cas[:caLen])
cas = cas[caLen:]
}
if len(data) > 0 {
return false
}
return true
return len(data) == 0
}
type certificateVerifyMsg struct {