Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(schema system): use empty slice instead of nil (#1567)

rebelice95a0c7b49610
diff --git a/server/sql.go b/server/sql.go
index 9f72098cb3..ac7437bb2c 100644
--- a/server/sql.go
+++ b/server/sql.go
@@ -134,7 +134,7 @@ func (s *Server) registerSQLRoutes(g *echo.Group) {
}
adviceLevel := advisor.Success
- var adviceList []advisor.Advice
+ adviceList := []advisor.Advice{}
if s.feature(api.FeatureSchemaReviewPolicy) &&
// For now we only support MySQL dialect schema review check.