diff --git a/plugins/wasm-go/pkg/matcher/rule_matcher.go b/plugins/wasm-go/pkg/matcher/rule_matcher.go index 52e15a9a2..acc0bbb82 100644 --- a/plugins/wasm-go/pkg/matcher/rule_matcher.go +++ b/plugins/wasm-go/pkg/matcher/rule_matcher.go @@ -123,8 +123,7 @@ func (m *RuleMatcher[PluginConfig]) ParseRuleConfig(config gjson.Result, if keyCount == 0 { // enable globally for empty config m.hasGlobalConfig = true - parsePluginConfig(config, &m.globalConfig) - return nil + return parsePluginConfig(config, &m.globalConfig) } if rulesJson, ok := obj[RULES_KEY]; ok { rules = rulesJson.Array()