Skip to content

Commit

Permalink
fixed staticcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 15, 2024
1 parent 2a977cd commit 300fd9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpc/beaconapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (bc *BeaconClient) Initialize() error {
}

// set extra endpoint headers
if bc.headers != nil && len(bc.headers) > 0 {
if len(bc.headers) > 0 {
cliParams = append(cliParams, http.WithExtraHeaders(bc.headers))
}

Expand Down
2 changes: 1 addition & 1 deletion utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func ReadConfig(cfg *types.Config, path string) error {
}
}
}
if cfg.BeaconApi.Endpoints == nil || len(cfg.BeaconApi.Endpoints) == 0 {
if len(cfg.BeaconApi.Endpoints) == 0 {
return fmt.Errorf("missing beacon node endpoints (need at least 1 endpoint to run the explorer)")
}

Expand Down

0 comments on commit 300fd9a

Please sign in to comment.