]> Cypherpunks repositories - gostls13.git/commit
encoding/asn1: simplify appendFourDigits
authorapocelipes <seve3r@outlook.com>
Tue, 26 Mar 2024 06:44:26 +0000 (06:44 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 28 Mar 2024 18:16:09 +0000 (18:16 +0000)
commit33fd95b8203f1ac887f13e7381a7ff124d098258
treee5242d7b484fdc088c1cd919eaaf42581b2e28f1
parented9aed1c9d7dd340006f22b96e1ee4476582b874
encoding/asn1: simplify appendFourDigits

The new code does not need a for-loop and is easier to read.

Change-Id: Ic182d63c4779c2179b721fcfaec362681284cc16
GitHub-Last-Rev: b3ee265df7eb4d51c945bf5453eb1b09f91912d9
GitHub-Pull-Request: golang/go#63879
Reviewed-on: https://go-review.googlesource.com/c/go/+/538721
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/encoding/asn1/marshal.go