Skip to content

Commit 00794fe

Browse files
author
Eric Koleda
committed
Merge pull request googleworkspace#27 from wbrp/if-assignment
Fixed assignment in if expression
2 parents 1d1a540 + f2b4efe commit 00794fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Service_.prototype.parseToken_ = function(content) {
399399
} catch (e) {
400400
throw 'Token response not valid JSON: ' + e;
401401
}
402-
} else if (this.tokenFormat_ = TOKEN_FORMAT.FORM_URL_ENCODED) {
402+
} else if (this.tokenFormat_ == TOKEN_FORMAT.FORM_URL_ENCODED) {
403403
token = content.split('&').reduce(function(result, pair) {
404404
var parts = pair.split('=');
405405
result[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);

0 commit comments

Comments
 (0)