1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:44:50 -07:00

crypto/aes: remove redundant nil check around loop

Change-Id: I8cc4b5efe798e74b6daabd64fc2dd5486dcb7c5e
GitHub-Last-Rev: 694509e33d
GitHub-Pull-Request: golang/go#28115
Reviewed-on: https://go-review.googlesource.com/c/140998
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Rijnard van Tonder 2018-10-17 01:10:14 +00:00 committed by Ian Lance Taylor
parent e861c3e003
commit 9c039ea27a

View File

@ -231,7 +231,6 @@ L:
continue L continue L
} }
} }
if dec != nil {
for j, v := range dec { for j, v := range dec {
if v != tt.dec[j] { if v != tt.dec[j] {
t.Errorf("key %d: dec[%d] = %#x, want %#x", i, j, v, tt.dec[j]) t.Errorf("key %d: dec[%d] = %#x, want %#x", i, j, v, tt.dec[j])
@ -240,7 +239,6 @@ L:
} }
} }
} }
}
// Appendix B, C of FIPS 197: Cipher examples, Example vectors. // Appendix B, C of FIPS 197: Cipher examples, Example vectors.
type CryptTest struct { type CryptTest struct {