Skip to content

Commit 4737cc2

Browse files
remove excessive check
1 parent 6aff826 commit 4737cc2

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

index.bs

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6368,11 +6368,7 @@ The [=remote end steps=] given |session| and |command parameters| are:
63686368
and |command parameters| [=map/contains=] "<code>contexts</code>",
63696369
return [=error=] with [=error code=] [=invalid argument=].
63706370

6371-
1. Let |emulated user agent| be null.
6372-
6373-
1. If |command parameters| [=map/contains=] "<code>userAgent</code>":
6374-
6375-
1. Set |emulated user agent| to |command parameters|["<code>userAgent</code>"].
6371+
1. Let |emulated user agent| be |command parameters|["<code>userAgent</code>"].
63766372

63776373
1. If |command parameters| [=map/contains=] "<code>contexts</code>":
63786374

@@ -6484,12 +6480,7 @@ The [=remote end steps=] with |command parameters| are:
64846480
and |command parameters| doesn't [=map/contain=] "<code>contexts</code>",
64856481
return [=error=] with [=error code=] [=invalid argument=].
64866482

6487-
1. Let |emulated scripting enabled status| be null.
6488-
6489-
1. If |command parameters| [=map/contains=] "<code>enabled</code>":
6490-
6491-
1. Set |emulated scripting enabled status| to
6492-
|command parameters|["<code>enabled</code>"].
6483+
1. Let |emulated scripting enabled status| be |command parameters|["<code>enabled</code>"].
64936484

64946485
1. If the <code>contexts</code> field of |command parameters| is present:
64956486

@@ -6593,15 +6584,11 @@ The [=remote end steps=] with |command parameters| are:
65936584
and |command parameters| doesn't [=map/contain=] "<code>contexts</code>",
65946585
return [=error=] with [=error code=] [=invalid argument=].
65956586

6596-
1. Let |emulated timezone| be null.
6597-
6598-
1. If |command parameters| [=map/contains=] "<code>timezone</code>":
6599-
6600-
1. Set |emulated timezone| to |command parameters|["<code>timezone</code>"].
6587+
1. Let |emulated timezone| be |command parameters|["<code>timezone</code>"].
66016588

6602-
1. If [=IsTimeZoneOffsetString=](|emulated timezone|) returns false and
6603-
[=AvailableNamedTimeZoneIdentifiers=] does not [=list/contain=]
6604-
|emulated timezone|, return [=error=] with [=error code=] [=invalid argument=].
6589+
1. If [=IsTimeZoneOffsetString=](|emulated timezone|) returns false and
6590+
[=AvailableNamedTimeZoneIdentifiers=] does not [=list/contain=]
6591+
|emulated timezone|, return [=error=] with [=error code=] [=invalid argument=].
66056592

66066593
1. Let |navigables| be a [=/set=].
66076594

0 commit comments

Comments
 (0)