Skip to content

Commit 0a2c94d

Browse files
committed
Else if to if
1 parent bb15130 commit 0a2c94d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5825,7 +5825,7 @@ The [=remote end steps=] with command parameters |params| are:
58255825
and add a mapping from |simulatedGattService| to the resulting {{Promise}} in
58265826
|simulatedDeviceInstance|.{{[[context]]}}.{{Bluetooth/[[attributeInstanceMap]]}}.
58275827
1. Return [=success=] with data `null`.
5828-
1. Else if |params|[`"type"`] is `"remove"`:
5828+
1. If |params|[`"type"`] is `"remove"`:
58295829
1. If |serviceMapping|[|uuid|] [=map/exists=], let |simulatedGattService| be |serviceMapping|[|uuid|].
58305830
1. Otherwise, return [=error=] with [=error code=] [=invalid element state=].
58315831
1. Remove |simulatedGattService| from |simulatedDeviceInstance|.{{[[context]]}}.{{Bluetooth/[[attributeInstanceMap]]}}.
@@ -5935,7 +5935,7 @@ The [=remote end steps=] with command parameters |params| are:
59355935
and add a mapping from |simulatedGattCharacteristic| to the resulting {{Promise}} in
59365936
|simulatedDeviceInstance|.{{[[context]]}}.{{Bluetooth/[[attributeInstanceMap]]}}.
59375937
1. Return [=success=] with data `null`.
5938-
1. Else if |params|[`"type"`] is `"remove"`:
5938+
1. If |params|[`"type"`] is `"remove"`:
59395939
1. If |params|[`"characteristicProperties"`] [=map/exists=], return [=error=] with [=error code=] [=invalid argument=].
59405940
1. If |characteristicMapping|[|characteristicUuid|] [=map/exists=], let |simulatedGattCharacteristic|
59415941
be |characteristicMapping|[|characteristicUuid|].
@@ -6125,7 +6125,7 @@ bluetooth.SimulateDescriptorParameters = {
61256125
and add a mapping from |simulatedGattDescriptor| to the resulting {{Promise}} in
61266126
|simulatedDeviceInstance|.{{[[context]]}}.{{Bluetooth/[[attributeInstanceMap]]}}.
61276127
1. Return [=success=] with data `null`.
6128-
1. Else if |params|[`"type"`] is `"remove"`:
6128+
1. If |params|[`"type"`] is `"remove"`:
61296129
1. If |descriptorMapping|[|descriptorUuid|] [=map/exists=], let |simulatedGattDescriptor|
61306130
be |descriptorMapping|[|descriptorUuid|].
61316131
1. Otherwise, return [=error=] with [=error code=] [=invalid element state=].

0 commit comments

Comments
 (0)