Skip to content

Commit

Permalink
cleanup var decl
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Sep 8, 2023
1 parent 03267da commit 63e65f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions messages/teleporter/message_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,7 @@ func (m *messageManager) messageDelivered(
// SendMessage extracts the gasLimit and packs the call data to call the receiveCrossChainMessage method of the Teleporter contract,
// and dispatches transaction construction and broadcast to the destination client
func (m *messageManager) SendMessage(signedMessage *warp.Message, parsedVmPayload []byte, destinationChainID ids.ID) error {
var (
teleporterMessage *TeleporterMessage
ok bool
)
teleporterMessage, ok = m.teleporterMessageCache.Get(signedMessage.ID())
teleporterMessage, ok := m.teleporterMessageCache.Get(signedMessage.ID())
if !ok {
m.logger.Debug(
"Teleporter message to send not in cache. Extracting from signed warp message.",
Expand Down

0 comments on commit 63e65f8

Please sign in to comment.