Skip to content

Commit

Permalink
fix: update code
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Aug 7, 2023
1 parent 41ecec6 commit 7b823a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/encoding/asn1/asn1.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ func decode(r []byte) ([]value, error) {
}}, nil
}

flatValues := []value{}
// constructed value
rootConstructed := &constructedValue{
identifier: identifier,
rawContent: content,
}
flatValues = append(flatValues, rootConstructed)
flatValues := []value{rootConstructed}

// start depth-first decoding with stack
valueStack := []*constructedValue{rootConstructed}
Expand Down

0 comments on commit 7b823a9

Please sign in to comment.