Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
center/messaging/trx-center.js
| ... | ... | @@ -105,12 +105,10 @@ function generateRequestId(req) { |
| 105 | 105 | function executePrepaidBuy(paramsFromTransport, cb) { |
| 106 | 106 | const tokens = paramsFromTransport.msg.trim().split(/[\., ]+/); |
| 107 | 107 | |
| 108 | - /* | |
| 109 | 108 | if (!tokens || tokens.length < 3) { |
| 110 | - cb && cb(null, {msg: 'Invalid command'}); | |
| 109 | + if (cb) { cb(null, {msg: 'Invalid command'}); } | |
| 111 | 110 | return; |
| 112 | 111 | } |
| 113 | - */ | |
| 114 | 112 | |
| 115 | 113 | const qs = { |
| 116 | 114 | request_id: tokens[3], |
package-lock.json