Skip to content

Commit

Permalink
remove assign
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Oct 19, 2023
1 parent 9771486 commit ed5f740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo/sm2/sm2.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func New(now time.Time) *Sm2 {
// details
func (s *Sm2) Update(oldItem []byte, r review.ReviewItem) ([]byte, error) {

newItem := Item{}
var newItem Item
// if empty -> new no ned to decode
if nil != oldItem {
decodedItem, err := decode(oldItem)
Expand Down

0 comments on commit ed5f740

Please sign in to comment.