Skip to content

Commit dfec73e

Browse files
committed
remove unnecessary check
1 parent 96d01d7 commit dfec73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Auth/vkontakte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var logger = require('../../logger').default;
99
// Returns a promise that fulfills iff this user id is valid.
1010
function validateAuthData(authData, params) {
1111
return vkOAuth2Request(params).then(function (response) {
12-
if (response && response && response.access_token) {
12+
if (response && response.access_token) {
1313
return request("api.vk.com", "method/secure.checkToken?token=" + authData.access_token + "&client_secret=" + params.appSecret + "&access_token=" + response.access_token).then(function (response) {
1414
if (response && response.response && response.response.user_id == authData.id) {
1515
return;

0 commit comments

Comments
 (0)