mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
fix: Invert condition for unknown fields in config unmarshaller (#4596)
Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ import (
|
||||
)
|
||||
|
||||
func configUnmarshaller(b []byte, v interface{}) error {
|
||||
if featureflags.ConfigDisallowUnknownFields.Enabled() {
|
||||
if !featureflags.ConfigDisallowUnknownFields.Enabled() {
|
||||
return json.Unmarshal(b, v)
|
||||
}
|
||||
dec := json.NewDecoder(bytes.NewReader(b))
|
||||
|
||||
Reference in New Issue
Block a user