Skip to content

Commit

Permalink
Update cmd/zetae2e/config/clients.go
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco de Borja Aranda Castillejo <[email protected]>
  • Loading branch information
gartnera and fbac authored Jul 30, 2024
1 parent 2c36808 commit f978676
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/zetae2e/config/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ func getClientsFromConfig(ctx context.Context, conf config.Config, account confi
) {
var solanaClient *rpc.Client
if conf.RPCs.Solana != "" {
solanaClient = rpc.New(conf.RPCs.Solana)
if solanaClient == nil {
if solanaClient = rpc.New(conf.RPCs.Solana); solanaClient == nil {
return E2EClients{}, fmt.Errorf("failed to get solana client")
}
}
Expand Down

0 comments on commit f978676

Please sign in to comment.