summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2022-10-29 15:12:53 -0400
committerAlex Flint <[email protected]>2022-10-29 15:12:53 -0400
commit9d5e97ac8ab96cab92076de4a1483d9018a3f9b4 (patch)
treeb75693a07d95b1945765db08f1e258c7f2c0e468
parent67f7183b85ccec77da44a823f419cfcd74d8c1e3 (diff)
drop unnecessary test
-rw-r--r--parse.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/parse.go b/parse.go
index 980ac22..cf364f3 100644
--- a/parse.go
+++ b/parse.go
@@ -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) {