Upgrade dependencies (#849)

Reviewed-on: https://gitea.com/gitea/tea/pulls/849
This commit is contained in:
Lunny Xiao
2025-11-24 19:21:55 +00:00
parent 4877f181fb
commit 587b31503d
6 changed files with 113 additions and 101 deletions

View File

@@ -5,6 +5,7 @@ package milestones
import (
stdctx "context"
"errors"
"fmt"
"code.gitea.io/tea/cmd/flags"
@@ -32,7 +33,7 @@ func editMilestoneStatus(_ stdctx.Context, cmd *cli.Command, close bool) error {
ctx := context.InitCommand(cmd)
ctx.Ensure(context.CtxRequirement{RemoteRepo: true})
if ctx.Args().Len() == 0 {
return fmt.Errorf(ctx.Command.ArgsUsage)
return errors.New(ctx.Command.ArgsUsage)
}
state := gitea.StateOpen