Browse Source

Fix: should apply default option firstly

pull/133/head
xjasonlyu 3 years ago
parent
commit
21eb99a37e
  1. 6
      core/stack.go

6
core/stack.go

@ -38,9 +38,9 @@ func CreateStack(cfg *Config) (*stack.Stack, error) {
cfg.PrintFunc = func(string, ...any) {}
}
opts := cfg.Options
if len(opts) == 0 {
opts = []option.Option{option.WithDefault()}
opts := []option.Option{option.WithDefault()}
if len(opts) > 0 {
opts = append(opts, cfg.Options...)
}
s := stack.New(stack.Options{

Loading…
Cancel
Save