Skip to content

Commit 0fabae7

Browse files
committed
Unnecessary code
1 parent 4715a1b commit 0fabae7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

server/option.go

-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ func WithLogger(logger *logrus.Logger) Option {
2828

2929
// WithCORS adds the CORS handler to the request handling
3030
func WithCORS(allowedOrigins []string) Option {
31-
32-
if cap(allowedOrigins) == 0 {
33-
allowedOrigins = []string{"*"}
34-
}
35-
3631
c := cors.New(cors.Options{
3732
AllowCredentials: true,
3833
AllowedHeaders: []string{"*"},

0 commit comments

Comments
 (0)