Re: [w3c/permissions] Editorial: cleanup examples (PR #350)

@miketaylr commented on this pull request.



>        </p>
       <pre class="example js" title="Checking the state of multiple permissions">
-        const queryPromises = ["geolocation", "notifications"].map(name =&gt; {
-          return navigator.permissions.query({ name });
-        });
+        const queryPromises = ["geolocation", "notifications"].map(
+          name =&gt; navigator.permissions.query({ name });

```suggestion
          name =&gt; navigator.permissions.query({ name })
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/350#pullrequestreview-873271975
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/permissions/pull/350/review/873271975@github.com>

Received on Friday, 4 February 2022 15:56:52 UTC