Merge latest main and fix database command lint
Integration Tests / integration-test (pull_request) Successful in 41s
Integration Tests / integration-test (pull_request) Successful in 41s
This commit is contained in:
@@ -160,9 +160,10 @@ func (f *FileDoc) FindDatabase(name string) (DatabaseConfig, bool, error) {
|
||||
if err != nil {
|
||||
return DatabaseConfig{}, false, err
|
||||
}
|
||||
for _, db := range dbs {
|
||||
for i := range dbs {
|
||||
db := &dbs[i]
|
||||
if db.Name == name {
|
||||
return db, true, nil
|
||||
return *db, true, nil
|
||||
}
|
||||
}
|
||||
return DatabaseConfig{}, false, nil
|
||||
|
||||
Reference in New Issue
Block a user