Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gouthamp-stellar committed Sep 26, 2024
1 parent 0fb94e3 commit df7ae05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions internal/tss/services/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@ package services

import (
"context"
"io"
"net/http"

"github.com/stellar/go/txnbuild"
"github.com/stellar/wallet-backend/internal/tss"

"github.com/stretchr/testify/mock"
)

type MockHTTPClient struct {
mock.Mock
}

func (s *MockHTTPClient) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) {
args := s.Called(url, contentType, body)
return args.Get(0).(*http.Response), args.Error(1)
}

type TransactionServiceMock struct {
mock.Mock
}
Expand Down
1 change: 1 addition & 0 deletions internal/tss/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type RPCGetIngestTxResponse struct {
CreatedAt int64
}

//nolint:unused
func ParseToRPCGetIngestTxResponse(result entities.RPCGetTransactionResult, err error) (RPCGetIngestTxResponse, error) {

Check failure on line 26 in internal/tss/types.go

View workflow job for this annotation

GitHub Actions / check

unreachable func: ParseToRPCGetIngestTxResponse
if err != nil {
return RPCGetIngestTxResponse{Status: entities.ErrorStatus}, err
Expand Down

0 comments on commit df7ae05

Please sign in to comment.