0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-09-30 04:14:29 -04:00

Lint models/repo_*

This commit is contained in:
Bwko
2016-11-28 17:58:59 +01:00
parent 27d66855eb
commit a5aae1c145
2 changed files with 13 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ type Collaboration struct {
Mode AccessMode `xorm:"DEFAULT 2 NOT NULL"`
}
// ModeI18nKey returns the collaboration mode I18n Key
func (c *Collaboration) ModeI18nKey() string {
switch c.Mode {
case AccessModeRead: