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 });

(that semi-colon will cause a syntax error because we're inside a fat-arrow fn w/o braces)

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

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

Received on Friday, 4 February 2022 15:57:19 UTC