Skip to content

Commit 25da948

Browse files
committed
Fix code style: arrow-parens
1 parent c057ff2 commit 25da948

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

JavaScript/1-channels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const queue = Queue.channels(3)
8686
const waiting = queue.waiting.length;
8787
console.log(`Done: ${res.name}, count:${count}, waiting: ${waiting}`);
8888
})
89-
.success(res => console.log(`Success: ${res.name}`))
90-
.failure(err => console.log(`Failure: ${err}`))
89+
.success((res) => console.log(`Success: ${res.name}`))
90+
.failure((err) => console.log(`Failure: ${err}`))
9191
.drain(() => console.log('Queue drain'));
9292

9393
for (let i = 0; i < 10; i++) {

JavaScript/2-timeouts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const queue = Queue.channels(3)
123123
.wait(4000)
124124
.timeout(5000)
125125
.process(job)
126-
.success(task => console.log(`Success: ${task.name}`))
126+
.success((task) => console.log(`Success: ${task.name}`))
127127
.failure((err, task) => console.log(`Failure: ${err} ${task.name}`))
128128
.drain(() => console.log('Queue drain'));
129129

JavaScript/3-pause.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const queue = Queue.channels(3)
144144
.wait(4000)
145145
.timeout(5000)
146146
.process(job)
147-
.success(task => console.log(`Success: ${task.name}`))
147+
.success((task) => console.log(`Success: ${task.name}`))
148148
.failure((err, task) => console.log(`Failure: ${err} ${task.name}`))
149149
.pause();
150150

0 commit comments

Comments
 (0)