1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00
Use `let` instead of `const`
This commit is contained in:
syuilo⭐️ 2017-01-05 22:15:53 +09:00 committed by GitHub
parent da7c98ff3f
commit a63de6d776

View File

@ -19,13 +19,13 @@ module.exports = (params, me) =>
new Promise(async (res, rej) => new Promise(async (res, rej) =>
{ {
// Get 'user_id' parameter // Get 'user_id' parameter
const userId = params.user_id; let userId = params.user_id;
if (userId === undefined || userId === null || userId === '') { if (userId === undefined || userId === null || userId === '') {
userId = null; userId = null;
} }
// Get 'username' parameter // Get 'username' parameter
const username = params.username; let username = params.username;
if (username === undefined || username === null || username === '') { if (username === undefined || username === null || username === '') {
username = null; username = null;
} }