Skip to content

Commit

Permalink
Fix problem with variable name (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius G authored Feb 23, 2021
1 parent be8d30c commit 613b2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func (c *statusCmd) SetFlags(flags *flag.FlagSet) {
}

func (c *statusCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
if c.TimeOut > 0 {
newCTX, cancel := context.WithTimeout(ctx, c.TimeOut)
if c.Timeout > 0 {
newCTX, cancel := context.WithTimeout(ctx, c.Timeout)
defer cancel()
ctx = newCTX
}
Expand Down

0 comments on commit 613b2cc

Please sign in to comment.