Skip to content

Commit

Permalink
Can't use "let" twice on same variable (#102)
Browse files Browse the repository at this point in the history
* Can't use "let" twice on same variable

Addresses: #98

* Fix wording
  • Loading branch information
ayuishii authored Oct 3, 2023
1 parent 2f26bf4 commit 41486d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ To <dfn>open a bucket</dfn> for a |shelf| given a bucket |name| and optional |op

1. If |options|["{{StorageBucketOptions/expires}}"] exists, then:

1. Let |expires| be |options|["{{StorageBucketOptions/expires}}"].
1. Set |expires| to |options|["{{StorageBucketOptions/expires}}"].

1. If |expires| milliseconds after the [=Unix epoch=] is before the [=relevant settings object=]'s [=environment settings object/current wall time=], then return failure.

1. Let |quota| be undefined.

1. If |options|["{{StorageBucketOptions/quota}}"] exists, then:

1. Let |quota| be |options|["{{StorageBucketOptions/quota}}"].
1. Set |quota| to |options|["{{StorageBucketOptions/quota}}"].

1. If |quota| is less than or equal to zero, then return failure.

Expand All @@ -128,7 +128,7 @@ To <dfn>open a bucket</dfn> for a |shelf| given a bucket |name| and optional |op

1. If |bucket| is null, then:

1. Let |bucket| be a new [=/storage bucket=] with name |name|.
1. Set |bucket| to a new [=/storage bucket=] with name |name|.

1. Set |bucket|'s [=StorageBucket/durability value=] to |options|["{{StorageBucketOptions/durability}}"] if it exists.

Expand Down

0 comments on commit 41486d8

Please sign in to comment.