mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 16:58:37 +00:00
Removed unnecessary conversions (#7557)
No need to convert to the same type.
This commit is contained in:
committed by
zeripath
parent
2f75766532
commit
54d96c79b5
@@ -113,7 +113,7 @@ func (p *Permission) ColorFormat(s fmt.State) {
|
||||
configBytes, err := unit.Config.ToDB()
|
||||
config = string(configBytes)
|
||||
if err != nil {
|
||||
config = string(err.Error())
|
||||
config = err.Error()
|
||||
}
|
||||
}
|
||||
format += "\nUnits[%d]: ID: %d RepoID: %d Type: %-v Config: %s"
|
||||
|
Reference in New Issue
Block a user