Skip to content

Commit 4493708

Browse files
caarlos0Copilot
andauthored
Update command.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent babb335 commit 4493708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎command.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ func (c *Command) getVersionFunc() func(*Command) error {
656656
return c.versionFunc
657657
}
658658
if c.HasParent() {
659-
return c.parent.parent.parent.getVersionFunc()
659+
return c.parent.getVersionFunc()
660660
}
661661
return nil
662662
}

0 commit comments

Comments
 (0)