Skip to content

Commit b9c76a8

Browse files
committed
fix instance name shadowing type
1 parent 39fdbf4 commit b9c76a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/xrp/xrp.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ func New(cfg *Config) (indexer.BlockchainClient[Block, Transaction], error) {
3131
return nil, errors.New("url must be provided")
3232
}
3333

34-
xrpClient := xrpClient{
34+
return xrpClient{
3535
client: http.DefaultClient,
3636
url: cfg.Url,
37-
}
38-
39-
return xrpClient, nil
37+
}, nil
4038
}
4139

4240
type xrpClient struct {

0 commit comments

Comments
 (0)