8000 replace map with forEach · syk-coder/rabbitmq-tutorials@8f64451 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f64451

Browse files
committed
replace map with forEach
1 parent 273e91a commit 8f64451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript-nodejs/src/receive_logs_direct.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ amqp.connect('amqp://localhost', function(err, conn) {
1818
ch.assertQueue('', {exclusive: true}, function(err, q) {
1919
console.log(' [*] Waiting for logs. To exit press CTRL+C');
2020

21-
args.map(function(severity) {
21+
args.forEach(function(severity) {
2222
ch.bindQueue(q.queue, ex, severity);
2323
});
2424

0 commit comments

Comments
 (0)
0