Skip to content

Commit

Permalink
fix(eventindexer): remove redundant opts.CorsOrigins check (#17306)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wang <[email protected]>
Co-authored-by: jeff <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2024
1 parent 465456e commit d025599
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/eventindexer/pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ func (opts NewServerOpts) Validate() error {
return eventindexer.ErrNoEventRepository
}

if opts.CorsOrigins == nil {
return eventindexer.ErrNoCORSOrigins
}

if opts.NFTBalanceRepo == nil {
return eventindexer.ErrNoNFTBalanceRepository
}
Expand Down

0 comments on commit d025599

Please sign in to comment.