diff --git a/java_status.go b/java_status.go index 6c48efa..c4a90d0 100644 --- a/java_status.go +++ b/java_status.go @@ -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 }