drop unnecessary test

This commit is contained in:
Alex Flint 2022-10-29 15:12:53 -04:00
parent 67f7183b85
commit 9d5e97ac8a
1 changed files with 0 additions and 3 deletions

View File

@ -213,9 +213,6 @@ func NewParser(config Config, dests ...interface{}) (*Parser, error) {
for _, spec := range cmd.specs {
// get the value
v := p.val(spec.dest)
if !v.IsValid() {
continue
}
// if the value is the "zero value" (e.g. nil pointer, empty struct) then ignore
if isZero(v) {