Skip to content

Commit

Permalink
2 lint cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Oct 13, 2024
1 parent 0f7777e commit 318cb98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cli/commandfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ func (c *Command) findFlagBackwardsIn(ctx context.Context, cc BaseOptI, children
return
}
}
if c.owner != nil && c.owner != c {
commands := mustEnsureDynCommands(ctx, c.owner)
res = c.owner.findFlagBackwardsIn(ctx, c.owner, commands, longName)
if pp := c.owner; pp != nil && pp != c {
commands := mustEnsureDynCommands(ctx, pp)
res = pp.findFlagBackwardsIn(ctx, pp, commands, longName)
}
_, _ = cc, children
return
}
2 changes: 1 addition & 1 deletion tiny/litecmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func onEvalJumpSubCommands(ctx context.Context, c cli.BaseOptI) (it cli.EvalIter
return
})

it = func(ctx context.Context) (bo cli.BaseOptI, hasNext bool, err error) {
it = func(context.Context) (bo cli.BaseOptI, hasNext bool, err error) {
if pos < len(keys) {
key := keys[pos]
bo = files[key]
Expand Down

0 comments on commit 318cb98

Please sign in to comment.