]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove unnecessary error condition on reading fingerprint
authorCherry Zhang <cherryyz@google.com>
Fri, 8 May 2020 21:12:45 +0000 (17:12 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 18 Aug 2020 21:18:14 +0000 (21:18 +0000)
commit84a62453e5c01df3f7d0c48d9aca32832c2052c1
tree9b816789eefd9226678ce28cbbed0c4b627a600c
parente7c7ce646f37b260fe5a5635bc52243d28125dd8
cmd/compile: remove unnecessary error condition on reading fingerprint

io.ReadFull guarantees n == len(buf) if and only if err == nil,
so the length check is redundant.

Change-Id: I15bff97868e27a65648acd791883cac8dab77630
Reviewed-on: https://go-review.googlesource.com/c/go/+/232988
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/compile/internal/gc/iimport.go