Remove superflous version check for server. (#284)
Remove superflous version check for server. Signed-off-by: Karl Heinz Marbaise <kama@soebes.de> Co-authored-by: Karl Heinz Marbaise <kama@soebes.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/284 Reviewed-by: Norwin <noerw@noreply.gitea.io> Reviewed-by: 6543 <6543@obermui.de> Co-Authored-By: khmarbaise <khmarbaise@noreply.gitea.io> Co-Committed-By: khmarbaise <khmarbaise@noreply.gitea.io>
This commit is contained in:
parent
846fb3072a
commit
6d6922efa6
|
@ -30,10 +30,6 @@ func runTrackedTimesDelete(ctx *cli.Context) error {
|
|||
login, owner, repo := config.InitCommand(flags.GlobalRepoValue, flags.GlobalLoginValue, flags.GlobalRemoteValue)
|
||||
client := login.Client()
|
||||
|
||||
if err := client.CheckServerVersionConstraint(">= 1.11"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if ctx.Args().Len() < 2 {
|
||||
return fmt.Errorf("No issue or time ID specified.\nUsage:\t%s", ctx.Command.UsageText)
|
||||
}
|
||||
|
|
|
@ -29,10 +29,6 @@ func runTrackedTimesReset(ctx *cli.Context) error {
|
|||
login, owner, repo := config.InitCommand(flags.GlobalRepoValue, flags.GlobalLoginValue, flags.GlobalRemoteValue)
|
||||
client := login.Client()
|
||||
|
||||
if err := client.CheckServerVersionConstraint(">= 1.11"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if ctx.Args().Len() != 1 {
|
||||
return fmt.Errorf("No issue specified.\nUsage:\t%s", ctx.Command.UsageText)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue