mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-10-14 00:59:21 +00:00
fixed missing return value check
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
d88ec092f0
commit
2a09f9d90d
@ -24,6 +24,9 @@ func (k msgServer) RegisterTrustAnchor(goCtx context.Context, msg *types.MsgRegi
|
|||||||
}
|
}
|
||||||
|
|
||||||
err := k.StoreTrustAnchor(ctx, *msg.TrustAnchor, false)
|
err := k.StoreTrustAnchor(ctx, *msg.TrustAnchor, false)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return &types.MsgRegisterTrustAnchorResponse{}, err
|
return &types.MsgRegisterTrustAnchorResponse{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user