Skip to content
Snippets Groups Projects
Commit c6896e23 authored by Hans Moog's avatar Hans Moog
Browse files

Fix: fixed unreachable code

parent cb6139f1
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,7 @@ func (tangle *Tangle) propagateBranchPreferredChangesToTransaction(cachedBranch
if !branch.IsAggregated() {
transactionID, _, err := transaction.IDFromBytes(branch.ID().Bytes())
if err != nil {
// this should never ever happen so we panic
panic(err)
return
panic(err) // this should never ever happen
}
_, err = tangle.SetTransactionPreferred(transactionID, preferred)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment