Skip to content

Commit

Permalink
fix: Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Apr 2, 2024
1 parent aff5033 commit 4a4a586
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions serve/graph/resolvers/transaction.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ func (r *TransactionResolver) filteredByMessageType(messageType *model.MessageTy
return false
}

func (r *TransactionResolver) filteredByTransactionMessage(messageInput *model.TransactionMessageInput, tm *model.TransactionMessage) bool {
func (r *TransactionResolver) filteredByTransactionMessage(
messageInput *model.TransactionMessageInput,
tm *model.TransactionMessage,
) bool {
if messageInput.TypeURL != nil && messageInput.TypeURL.String() != tm.TypeURL.String() {
return false
}
Expand Down Expand Up @@ -166,7 +169,10 @@ func (r *TransactionResolver) filteredByTransactionMessage(messageInput *model.T
return true
}

func checkMessageOfBankMsgSend(bankMessageInput *model.TransactionBankMessageInput, messageValue model.BankMsgSend) bool {
func checkMessageOfBankMsgSend(
bankMessageInput *model.TransactionBankMessageInput,
messageValue model.BankMsgSend,
) bool {
params := bankMessageInput
if params == nil || params.Send == nil {
return true
Expand All @@ -187,7 +193,10 @@ func checkMessageOfBankMsgSend(bankMessageInput *model.TransactionBankMessageInp
return true
}

func checkByMessageOfMsgCall(vmMessageInput *model.TransactionVMMessageInput, messageValue model.MsgCall) bool {
func checkByMessageOfMsgCall(
vmMessageInput *model.TransactionVMMessageInput,
messageValue model.MsgCall,
) bool {
params := vmMessageInput
if params == nil {
return true
Expand Down Expand Up @@ -232,7 +241,10 @@ func checkByMessageOfMsgCall(vmMessageInput *model.TransactionVMMessageInput, me
return true
}

func checkMessageOfMsgAddPackage(vmMessageInput *model.TransactionVMMessageInput, messageValue model.MsgAddPackage) bool {
func checkMessageOfMsgAddPackage(
vmMessageInput *model.TransactionVMMessageInput,
messageValue model.MsgAddPackage,
) bool {
params := vmMessageInput
if params == nil {
return true
Expand Down

0 comments on commit 4a4a586

Please sign in to comment.