From 6d6922efa6e0bac0634a99f1bb6f1ab58c4556be Mon Sep 17 00:00:00 2001 From: khmarbaise Date: Wed, 9 Dec 2020 04:26:39 +0800 Subject: [PATCH] Remove superflous version check for server. (#284) Remove superflous version check for server. Signed-off-by: Karl Heinz Marbaise Co-authored-by: Karl Heinz Marbaise Reviewed-on: https://gitea.com/gitea/tea/pulls/284 Reviewed-by: Norwin Reviewed-by: 6543 <6543@obermui.de> Co-Authored-By: khmarbaise Co-Committed-By: khmarbaise --- cmd/times/delete.go | 4 ---- cmd/times/reset.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/cmd/times/delete.go b/cmd/times/delete.go index 1914d57..7d0e7b5 100644 --- a/cmd/times/delete.go +++ b/cmd/times/delete.go @@ -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) } diff --git a/cmd/times/reset.go b/cmd/times/reset.go index 7c54dac..99afc29 100644 --- a/cmd/times/reset.go +++ b/cmd/times/reset.go @@ -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) }