commit | f31654786c0e9c54c227b1e966faadc615780ef5 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Sun Jan 29 12:06:01 2023 -0500 |
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 31 19:35:39 2023 +0000 |
tree | a96e8cba2be624bdaf282215c5d0d23c54ab1aaf | |
parent | 4ed497f0c513dbc1c176dcad7806eea5caf6fbef [diff] |
Simplify a pair of Go range expressions gopls was warning about this. Change-Id: Ida8ff67bcb9ada253fb075a8a800cbefd432ca8f Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/56545 Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/bn/bn_test_to_fuzzer.go b/crypto/fipsmodule/bn/bn_test_to_fuzzer.go index afe7d61..2915db5 100644 --- a/crypto/fipsmodule/bn/bn_test_to_fuzzer.go +++ b/crypto/fipsmodule/bn/bn_test_to_fuzzer.go
@@ -140,7 +140,7 @@ } } - for k, _ := range t.Values { + for k := range t.Values { var found bool for _, k2 := range keys { if k == k2 {
diff --git a/crypto/fipsmodule/bn/check_bn_tests.go b/crypto/fipsmodule/bn/check_bn_tests.go index 0c8493d..032b9e3 100644 --- a/crypto/fipsmodule/bn/check_bn_tests.go +++ b/crypto/fipsmodule/bn/check_bn_tests.go
@@ -137,7 +137,7 @@ } } - for k, _ := range t.Values { + for k := range t.Values { var found bool for _, k2 := range keys { if k == k2 {