Skip to content

Commit 8ce5425

Browse files
evanstadeEvan Stade
andauthored
Remove "otherwise" language after throwing in algorithms. (#438)
Co-authored-by: Evan Stade <[email protected]>
1 parent 1dd072d commit 8ce5425

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,15 +2015,15 @@ enum IDBRequestReadyState {
20152015
The <dfn attribute for=IDBRequest>result</dfn> getter steps are:
20162016

20172017
1. If [=/this=]'s [=request/done flag=] is false, then [=exception/throw=] an "{{InvalidStateError}}" {{DOMException}}.
2018-
1. Otherwise, return [=/this=]'s [=request/result=], or undefined if the request resulted in an error.
2018+
1. Return [=/this=]'s [=request/result=], or undefined if the request resulted in an error.
20192019

20202020
</div>
20212021

20222022
<div algorithm>
20232023
The <dfn attribute for=IDBRequest>error</dfn> getter steps are:
20242024

20252025
1. If [=/this=]'s [=request/done flag=] is false, then [=exception/throw=] an "{{InvalidStateError}}" {{DOMException}}.
2026-
1. Otherwise, return [=/this=]'s [=request/error=], or null if no error occurred.
2026+
1. Return [=/this=]'s [=request/error=], or null if no error occurred.
20272027

20282028
</div>
20292029

@@ -2981,8 +2981,7 @@ To <dfn>add or put</dfn> with |handle|, |value|, |key|, and |no-overwrite flag|,
29812981
1. If |store| does not have a [=key generator=], [=exception/throw=]
29822982
a "{{DataError}}" {{DOMException}}.
29832983

2984-
1. Otherwise, if
2985-
[=check that a key could be injected into a value=] with
2984+
1. If [=check that a key could be injected into a value=] with
29862985
|clone| and |store|'s [=object-store/key path=] return
29872986
false, [=exception/throw=] a "{{DataError}}" {{DOMException}}.
29882987

0 commit comments

Comments
 (0)