Skip to content

Commit

Permalink
Check if the client config is not properly initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Mar 6, 2023
1 parent 686f5e1 commit e22e18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewClient(ctx context.Context, clientConfig *config.Client, logger zerolog.

var client Client

if clientConfig == nil {
if clientConfig == nil || clientConfig == (&config.Client{}) {
return nil
}

Expand Down

0 comments on commit e22e18f

Please sign in to comment.