Skip to content

Commit dac3c00

Browse files
committed
add
1 parent 154a916 commit dac3c00

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tencentcloud/services/mqtt/resource_tc_mqtt_instance.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,11 @@ func ResourceTencentCloudMqttInstanceCreate(d *schema.ResourceData, meta interfa
240240
)
241241

242242
if v, ok := d.GetOkExists("automatic_activation"); ok {
243-
if v.(bool) {
244-
isAutomaticActivation = true
245-
}
243+
isAutomaticActivation = v.(bool)
246244
}
247245

248246
if v, ok := d.GetOkExists("authorization_policy"); ok {
249-
if v.(bool) {
250-
isAuthorizationPolicy = true
251-
}
247+
isAuthorizationPolicy = v.(bool)
252248
}
253249

254250
// open automatic_activation or authorization_policy

0 commit comments

Comments
 (0)