Skip to content

Commit 067d880

Browse files
MX-15029: remove unreachable code
1 parent 70fde80 commit 067d880

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

vm/systemSmartContracts/governance.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,14 +1078,6 @@ func (g *governanceContract) getUserVotesV2(address []byte) (*OngoingVotedListV2
10781078
}
10791079

10801080
err := g.marshalizer.Unmarshal(onGoingListV2, marshaledData)
1081-
if err == nil {
1082-
return onGoingListV2, nil
1083-
}
1084-
onGoingList := &OngoingVotedList{
1085-
Direct: make([]uint64, 0),
1086-
Delegated: make([]uint64, 0),
1087-
}
1088-
err = g.marshalizer.Unmarshal(onGoingList, marshaledData)
10891081
if err != nil {
10901082
return nil, err
10911083
}

0 commit comments

Comments
 (0)