fix: remove unused init functions and imports

This commit is contained in:
2026-04-19 08:11:51 +08:00
parent b7929d6ae7
commit 6a800164c4
3 changed files with 3 additions and 12 deletions
+1 -3
View File
@@ -386,6 +386,4 @@ func (api AccessLogApi) GetWebsiteStatusCodeStatsEndpoint(c echo.Context) error
return Success(c, []interface{}{})
}
func init() {
_ = context.TODO()
}
+1 -4
View File
@@ -2,7 +2,6 @@ package repository
import (
"context"
"strconv"
"next-terminal/server/common"
"next-terminal/server/model"
@@ -384,6 +383,4 @@ func (r authorisedWebsiteRepository) FindWithDetails(c context.Context, pageInde
return
}
func init() {
_ = strconv.Itoa(0)
}
+1 -5
View File
@@ -2,7 +2,6 @@ package repository
import (
"context"
"strconv"
"strings"
"next-terminal/server/model"
@@ -142,7 +141,4 @@ func (r databaseAssetRepository) UpdateOwner(c context.Context, ownerId string,
return r.GetDB(c).Model(&model.DatabaseAsset{}).Where("owner = ?", ownerId).Update("owner", newOwnerId).Error
}
func init() {
_ = strconv.Itoa(0)
_ = strings.Join(nil, "")
}