Skip to content

Commit 39ae75f

Browse files
authored
Merge pull request w3c#445 from rakuco/use-exists-not-is-present
Use "exists" rather than "is present" in dictionary checks.
2 parents 9f43814 + bee4a2e commit 39ae75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,9 @@ Each [=mock sensor type=] has a [=mock sensor reading values=] dictionary:
17671767
1. Set |mock|'s [=mock sensor type=] to |type|.
17681768
1. Let |connected| be the |configuration|.{{MockSensorConfiguration/connected}}, set |mock|'s associated
17691769
[=connection flag=] to |connected|.
1770-
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} is [=present=], then:
1770+
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} [=map/exists=], then:
17711771
1. Set |mock|'s maximum supported sampling frequency to |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}}.
1772-
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} is [=present=], then:
1772+
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} [=map/exists=], then:
17731773
1. Set |mock|'s minimum supported sampling frequency to |configuration|.{{MockSensorConfiguration/minSamplingFrequency}}.
17741774
1. Let |sensor_instance| be a |type| of {{Sensor}} object, set |sensor_instance|'s associated [=platform sensor=] to |mock|.
17751775
1. Return [=success=] with data `null`.

0 commit comments

Comments
 (0)