mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 14:17:18 +02:00
Fix remaining issues after gopls modernize formatting (#34771)
Followup https://github.com/go-gitea/gitea/pull/34751, fix all remaining marked issues. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
1 parent
a2ae7c69da
commit
46a1d52235
7 files changed
+10
-42
No files matched your search
@@ -99,11 +99,7 @@ func Install(ctx *context.Context) {
|
||||
form.SSLMode = setting.Database.SSLMode
|
||||
|
||||
curDBType := setting.Database.Type.String()
|
||||
var isCurDBTypeSupported bool
|
||||
if slices.Contains(setting.SupportedDatabaseTypes, curDBType) {
|
||||
isCurDBTypeSupported = true
|
||||
}
|
||||
if !isCurDBTypeSupported {
|
||||
if !slices.Contains(setting.SupportedDatabaseTypes, curDBType) {
|
||||
curDBType = "mysql"
|
||||
}
|
||||
ctx.Data["CurDbType"] = curDBType
|
||||
|
||||
Reference in new issue
Block a user