Skip to content

Commit

Permalink
fix: resolve comment
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
  • Loading branch information
JeyJeyGao committed Aug 3, 2023
1 parent edb729c commit 22afdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/encoding/asn1/asn1.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ func decodeIdentifier(r []byte) ([]byte, []byte, error) {
// The first return value is the length.
// The second return value is the subsequent value after the length octets.
func decodeLength(r []byte) (int, []byte, error) {
offset := 0
if len(r) < 1 {
return 0, nil, ErrEarlyEOF
}
offset := 0
b := r[offset]
offset++

Expand Down

0 comments on commit 22afdf8

Please sign in to comment.