Commit 65d653bbd296a2bbae37c45ec1f2fc0b9b5b0303
1 parent
0a9c256b85
Exists in
master
cleanup resend-delay
Showing 1 changed file with 1 additions and 6 deletions Side-by-side Diff
resend-delay.js
... | ... | @@ -9,12 +9,7 @@ var topupRequest; |
9 | 9 | var resendHandlers = LRU({max: 2000, maxAge: 1000 * 3600 * 36}); |
10 | 10 | |
11 | 11 | function init(options) { |
12 | - if (!options) { | |
13 | - console.log('Undefined options, terminating....'); | |
14 | - process.exit(1); | |
15 | - } | |
16 | - | |
17 | - if (options.request) { | |
12 | + if (options && options.request) { | |
18 | 13 | request = options.request; |
19 | 14 | } else { |
20 | 15 | logger.warn('Undefined options.request, terminating....'); |