Skip to content

Commit 9757283

Browse files
committed
Destructure option object directly in the function argument
1 parent 0af0725 commit 9757283

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/authorize.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ function buildOAuthURL (authURL, redirectUri, scope, clientId) {
5353
return url;
5454
}
5555

56-
const Authorize = function (remoteStorage, options) {
57-
let { authURL, scope, redirectUri, clientId } = options;
56+
const Authorize = function (remoteStorage, { authURL, scope, redirectUri, clientId }) {
5857
log('[Authorize] authURL = ', authURL, 'scope = ', scope, 'redirectUri = ', redirectUri, 'clientId = ', clientId);
5958

6059
// keep track of the discovery data during redirect if we can't save it in localStorage

0 commit comments

Comments
 (0)