Skip to content

Commit 5fcd2d6

Browse files
committed
go fmt
1 parent 9c6062a commit 5fcd2d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tencentcloud/resource_tc_mysql_instance.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,18 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema {
7878
DiffSuppressFunc: func(k, olds, news string, d *schema.ResourceData) bool {
7979
if (olds == "" && news == MYSQL_CHARGE_TYPE_POSTPAID) ||
8080
(olds == MYSQL_CHARGE_TYPE_POSTPAID && news == "") {
81-
if v, ok:= d.GetOkExists("pay_type"); ok&& v.(int) == MysqlPayByUse{
81+
if v, ok := d.GetOkExists("pay_type"); ok && v.(int) == MysqlPayByUse {
8282
return true
8383
}
84-
}else if(olds == ""&& news == MYSQL_CHARGE_TYPE_PREPAID) ||
85-
(olds == MYSQL_CHARGE_TYPE_PREPAID && news == ""){
86-
if v, ok:= d.GetOkExists("pay_type"); ok&& v.(int) == MysqlPayByMonth{
84+
} else if (olds == "" && news == MYSQL_CHARGE_TYPE_PREPAID) ||
85+
(olds == MYSQL_CHARGE_TYPE_PREPAID && news == "") {
86+
if v, ok := d.GetOkExists("pay_type"); ok && v.(int) == MysqlPayByMonth {
8787
return true
8888
}
8989
}
9090
return olds == news
9191
},
92-
Description: "Pay type of instance, valid values are `PREPAID`, `POSTPAID`. Default is `POSTPAID`.",
92+
Description: "Pay type of instance, valid values are `PREPAID`, `POSTPAID`. Default is `POSTPAID`.",
9393
},
9494
"period": {
9595
Type: schema.TypeInt,

0 commit comments

Comments
 (0)