Skip to content

Commit

Permalink
Update confmap/confmap.go
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
  • Loading branch information
atoulme and mx-psi committed Apr 3, 2024
1 parent abf9f43 commit 8c305d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confmap/confmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (l *Conf) Unmarshal(result any, opts ...UnmarshalOption) error {
for _, opt := range opts {
opt.apply(&set)
}
return decodeConfig(l, result, !set.ignoreUnused, l.self != result)
return decodeConfig(l, result, !set.ignoreUnused, l.self == result)
}

type marshalOption struct{}
Expand Down

0 comments on commit 8c305d1

Please sign in to comment.