Skip to content

Commit 22e76aa

Browse files
committed
Revert "fix: use WithIgnoreUnused in Stability.Unmarshal for separate field unmarshaling"
This reverts commit d139837.
1 parent 88fd5db commit 22e76aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/mdatagen/internal/metric.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *Stability) Unmarshal(parser *confmap.Conf) error {
7676
Level *component.StabilityLevel `mapstructure:"level"`
7777
}{
7878
Level: &level,
79-
}, confmap.WithIgnoreUnused()); err != nil {
79+
}); err != nil {
8080
return err
8181
}
8282

@@ -86,7 +86,7 @@ func (s *Stability) Unmarshal(parser *confmap.Conf) error {
8686
if parser.IsSet("from") {
8787
if err := parser.Unmarshal(&struct {
8888
From *string `mapstructure:"from"`
89-
}{From: &s.From}, confmap.WithIgnoreUnused()); err != nil {
89+
}{From: &s.From}); err != nil {
9090
return err
9191
}
9292
}

0 commit comments

Comments
 (0)