mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 17:06:49 +00:00
New lint rules
This commit is contained in:
@ -12,6 +12,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// Setup ...
|
||||
func Setup() (sqlmock.Sqlmock, error) {
|
||||
db, mock, err := sqlmock.New()
|
||||
if err != nil {
|
||||
@ -26,6 +27,7 @@ func Setup() (sqlmock.Sqlmock, error) {
|
||||
return mock, err
|
||||
}
|
||||
|
||||
// InitConfig ...
|
||||
func InitConfig(t *testing.T, envs ...string) {
|
||||
if len(envs) > 0 {
|
||||
for _, env := range envs {
|
||||
|
Reference in New Issue
Block a user