Skip to content

Commit

Permalink
Merge pull request #445 from rakuco/use-exists-not-is-present
Browse files Browse the repository at this point in the history
Use "exists" rather than "is present" in dictionary checks.
  • Loading branch information
anssiko authored Dec 7, 2022
2 parents 9f43814 + bee4a2e commit 39ae75f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,9 +1767,9 @@ Each [=mock sensor type=] has a [=mock sensor reading values=] dictionary:
1. Set |mock|'s [=mock sensor type=] to |type|.
1. Let |connected| be the |configuration|.{{MockSensorConfiguration/connected}}, set |mock|'s associated
[=connection flag=] to |connected|.
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} is [=present=], then:
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} [=map/exists=], then:
1. Set |mock|'s maximum supported sampling frequency to |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}}.
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} is [=present=], then:
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} [=map/exists=], then:
1. Set |mock|'s minimum supported sampling frequency to |configuration|.{{MockSensorConfiguration/minSamplingFrequency}}.
1. Let |sensor_instance| be a |type| of {{Sensor}} object, set |sensor_instance|'s associated [=platform sensor=] to |mock|.
1. Return [=success=] with data `null`.
Expand Down

0 comments on commit 39ae75f

Please sign in to comment.