Skip to content

Commit bda9267

Browse files
committed
fix: format code with gofmt
1 parent 0ef16e2 commit bda9267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/controller/mysql/user/reconciler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ func (c *external) executeCreateUserQuery(ctx context.Context, username string,
292292

293293
if len(authplugin) > 0 {
294294
switch authplugin {
295-
case "mysql_native_password", "caching_sha2_password":
296-
authStm = fmt.Sprintf("WITH %s BY %s", authplugin, mysql.QuoteValue(pw))
297-
case "AWSAuthenticationPlugin":
298-
authStm = fmt.Sprintf("WITH %s AS %s", authplugin, mysql.QuoteValue("RDS"))
295+
case "mysql_native_password", "caching_sha2_password":
296+
authStm = fmt.Sprintf("WITH %s BY %s", authplugin, mysql.QuoteValue(pw))
297+
case "AWSAuthenticationPlugin":
298+
authStm = fmt.Sprintf("WITH %s AS %s", authplugin, mysql.QuoteValue("RDS"))
299299
}
300300
} else {
301301
authStm = fmt.Sprintf("BY %s", mysql.QuoteValue(pw))

0 commit comments

Comments
 (0)