Commit 6f90c60acaf9329ed1c52085b7f559c1992498d9

Authored by Adhidarma Hadiwinoto
1 parent 558708432a
Exists in master

Fix eslint on claimbonus

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

lib/command-handler/claimbonus.js
... ... @@ -6,23 +6,23 @@ const commandError = require('./error');
6 6 const coreapi = require('../coreapi');
7 7  
8 8 function help(keyword) {
9   - return `Untuk menarik bonus ke saldo, ketik perintah dengan format:\n${ keyword.toUpperCase() }.<PIN>`;
  9 + return `Untuk menarik bonus ke saldo, ketik perintah dengan format:\n${keyword.toUpperCase()}.<PIN>`;
10 10 }
11 11  
12 12 function execute(tokens, params, cb) {
13 13 if (config.disable_claim_bonus || config.disable_claim_rebate) {
14 14 const responseParams = {
15 15 body: 'Maaf permintaan anda tidak dapat dilakukan',
16   - }
  16 + };
17 17  
18 18 cb(null, null, responseParams);
19 19 return;
20 20 }
21   -
  21 +
22 22 if (!tokens || tokens.length < 2) {
23 23 const responseParams = {
24   - body: `${ commandError.ERR_INVALID_FORMAT }. ${ help(tokens[0]) }`
25   - }
  24 + body: `${commandError.ERR_INVALID_FORMAT}. ${help(tokens[0])}`,
  25 + };
26 26  
27 27 cb(null, null, responseParams);
28 28 return;
... ... @@ -36,4 +36,4 @@ function execute(tokens, params, cb) {
36 36 coreapi(coreEndpoint, coreParams, 'GET', cb);
37 37 }
38 38  
39   -module.exports = execute;
40 39 \ No newline at end of file
  40 +module.exports = execute;