aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_unit.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo_unit.go')
-rw-r--r--models/repo_unit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo_unit.go b/models/repo_unit.go
index b208276d9d..8c2d458758 100644
--- a/models/repo_unit.go
+++ b/models/repo_unit.go
@@ -6,10 +6,10 @@ package models
import (
"encoding/json"
+ "fmt"
"code.gitea.io/gitea/modules/timeutil"
- "github.com/unknwon/com"
"xorm.io/xorm"
"xorm.io/xorm/convert"
)
@@ -147,7 +147,7 @@ func (r *RepoUnit) BeforeSet(colName string, val xorm.Cell) {
case UnitTypeIssues:
r.Config = new(IssuesConfig)
default:
- panic("unrecognized repo unit type: " + com.ToStr(*val))
+ panic(fmt.Sprintf("unrecognized repo unit type: %v", *val))
}
}
}