Skip to content

Commit

Permalink
refactor: use const
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jan 11, 2020
1 parent 908d672 commit 086b2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const parseQueryString = string => {
if (string === "") {
return {};
}
let segments = string.split("&").map(s => s.split("="));
let queryString = {};
const segments = string.split("&").map(s => s.split("="));
const queryString = {};
segments.forEach(s => (queryString[s[0]] = s[1]));
return queryString;
};
Expand Down

0 comments on commit 086b2de

Please sign in to comment.