fix: remove unused init functions and imports
This commit is contained in:
@@ -386,6 +386,4 @@ func (api AccessLogApi) GetWebsiteStatusCodeStatsEndpoint(c echo.Context) error
|
|||||||
return Success(c, []interface{}{})
|
return Success(c, []interface{}{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
_ = context.TODO()
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package repository
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"next-terminal/server/common"
|
"next-terminal/server/common"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
@@ -384,6 +383,4 @@ func (r authorisedWebsiteRepository) FindWithDetails(c context.Context, pageInde
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
_ = strconv.Itoa(0)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package repository
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"next-terminal/server/model"
|
"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
|
return r.GetDB(c).Model(&model.DatabaseAsset{}).Where("owner = ?", ownerId).Update("owner", newOwnerId).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
_ = strconv.Itoa(0)
|
|
||||||
_ = strings.Join(nil, "")
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user