Skip to content

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

Fix warning in mysql.go

天舟5cb93fae6567
diff --git a/bin/bb/restore/mysqlrestore/mysql.go b/bin/bb/restore/mysqlrestore/mysql.go
index 2bacb20aef..b16e9da825 100644
--- a/bin/bb/restore/mysqlrestore/mysql.go
+++ b/bin/bb/restore/mysqlrestore/mysql.go
@@ -25,12 +25,12 @@ func Restore(conn *connect.MysqlConnect, sc *bufio.Scanner) error {
case line == "DELIMITER ;;":
delimiter = true
continue
- case line == "DELIMITER ;" && delimiter == true:
+ case line == "DELIMITER ;" && delimiter:
delimiter = false
execute = true
case strings.HasSuffix(line, ";"):
s = s + line + "\n"
- if delimiter == false {
+ if !delimiter {
execute = true
}
default: