Skip to content

Commit

Permalink
Remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Jan 15, 2019
1 parent 7d7ac62 commit 9753845
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions balloon/visitor/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func (v CollectMutationsVisitor) Result() []*storage.Mutation {
}

func (v *CollectMutationsVisitor) VisitCollectable(pos navigator.Position, result interface{}) interface{} {
value := v.PostOrderVisitor.VisitCollectable(pos, result).(hashing.Digest)
v.mutations = append(v.mutations, storage.NewMutation(v.storagePrefix, pos.Bytes(), value))
v.mutations = append(v.mutations, storage.NewMutation(v.storagePrefix, pos.Bytes(), result.(hashing.Digest)))
return result
}

0 comments on commit 9753845

Please sign in to comment.