mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
use utils.ArgsToIndices
This commit is contained in:
parent
2d7a38a2ad
commit
b5fdb59852
|
@ -41,13 +41,7 @@ func runIssuesEdit(cmd *cli.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
indices := make([]int64, ctx.Args().Len())
|
||||
for i, arg := range ctx.Args().Slice() {
|
||||
var err error
|
||||
if indices[i], err = utils.ArgToIndex(arg); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
indices, err := utils.ArgsToIndices(ctx.Args().Slice())
|
||||
|
||||
client := ctx.Login.Client()
|
||||
for _, opts.Index = range indices {
|
||||
|
|
Loading…
Reference in a new issue