aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2024-03-13 07:04:07 +0100
committerGitHub <noreply@github.com>2024-03-13 07:04:07 +0100
commit9a93b1816e0bc65101e7ad7ca66786fb38a8e628 (patch)
treebb2fec0860c38c2cb56236107621da2ab0308339 /routers
parent857243bed7f9dccdc597c2941df41e821781cb0f (diff)
downloadgitea-9a93b1816e0bc65101e7ad7ca66786fb38a8e628.tar.gz
gitea-9a93b1816e0bc65101e7ad7ca66786fb38a8e628.zip
Refactor label.IsArchived() (#29750)
just some missed nits
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/issue_label.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go
index 9dedaefa4b..81bee4dbb5 100644
--- a/routers/web/repo/issue_label.go
+++ b/routers/web/repo/issue_label.go
@@ -13,7 +13,6 @@ import (
"code.gitea.io/gitea/modules/label"
"code.gitea.io/gitea/modules/log"
repo_module "code.gitea.io/gitea/modules/repository"
- "code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/web"
"code.gitea.io/gitea/services/context"
"code.gitea.io/gitea/services/forms"
@@ -112,12 +111,11 @@ func NewLabel(ctx *context.Context) {
}
l := &issues_model.Label{
- RepoID: ctx.Repo.Repository.ID,
- Name: form.Title,
- Exclusive: form.Exclusive,
- Description: form.Description,
- Color: form.Color,
- ArchivedUnix: timeutil.TimeStamp(0),
+ RepoID: ctx.Repo.Repository.ID,
+ Name: form.Title,
+ Exclusive: form.Exclusive,
+ Description: form.Description,
+ Color: form.Color,
}
if err := issues_model.NewLabel(ctx, l); err != nil {
ctx.ServerError("NewLabel", err)