summaryrefslogtreecommitdiffstats
path: root/models/admin.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:24:59 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:24:59 +0100
commitf6a11e0de1ab950b42679d6be9dc0f3ac86c3399 (patch)
tree949480af7bd3cf0dd27f33256bb964d9b5bbfea2 /models/admin.go
parentf388661bda8097b5ff01548e6153c566690c9b5e (diff)
downloadgitea-f6a11e0de1ab950b42679d6be9dc0f3ac86c3399.tar.gz
gitea-f6a11e0de1ab950b42679d6be9dc0f3ac86c3399.zip
More MixedCase consts
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/admin.go b/models/admin.go
index 3f17c2fdaa..dab92863a5 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -22,7 +22,7 @@ import (
type NoticeType int
const (
- NOTICE_REPOSITORY NoticeType = iota + 1
+ NoticeRepository NoticeType = iota + 1
)
// Notice represents a system notice for admin.
@@ -65,9 +65,9 @@ func CreateNotice(tp NoticeType, desc string) error {
return err
}
-// CreateRepositoryNotice creates new system notice with type NOTICE_REPOSITORY.
+// CreateRepositoryNotice creates new system notice with type NoticeRepository.
func CreateRepositoryNotice(desc string) error {
- return CreateNotice(NOTICE_REPOSITORY, desc)
+ return CreateNotice(NoticeRepository, desc)
}
// RemoveAllWithNotice removes all directories in given path and