diff options
| author | Alex Flint <[email protected]> | 2022-10-29 15:12:53 -0400 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2022-10-29 15:12:53 -0400 |
| commit | 9d5e97ac8ab96cab92076de4a1483d9018a3f9b4 (patch) | |
| tree | b75693a07d95b1945765db08f1e258c7f2c0e468 | |
| parent | 67f7183b85ccec77da44a823f419cfcd74d8c1e3 (diff) | |
drop unnecessary test
| -rw-r--r-- | parse.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) { |
