Skip to content

Commit 9d4c60b

Browse files
committed
fix(core): skip nil opts
Signed-off-by: Christian Stewart <[email protected]>
1 parent b07b6f2 commit 9d4c60b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/core.go

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ func NewCoreBus(
5656
// Process options
5757
conf := &CoreBusConfig{}
5858
for _, opt := range opts {
59+
if opt == nil {
60+
continue
61+
}
5962
if err := opt(conf); err != nil {
6063
return nil, nil, err
6164
}

0 commit comments

Comments
 (0)