Skip to content

Commit ddef433

Browse files
committed
(nit) Improve queue position tracking variable name
1 parent 79734d2 commit ddef433

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/internal/queue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function queue(worker, concurrency, payload) {
1515
throw new Error('Concurrency must not be zero');
1616
}
1717

18-
function _insert(data, pos, callback) {
18+
function _insert(data, insertAtFront, callback) {
1919
if (callback != null && typeof callback !== 'function') {
2020
throw new Error('task callback must be a function');
2121
}
@@ -35,7 +35,7 @@ export default function queue(worker, concurrency, payload) {
3535
callback: callback || noop
3636
};
3737

38-
if (pos) {
38+
if (insertAtFront) {
3939
q._tasks.unshift(item);
4040
} else {
4141
q._tasks.push(item);

0 commit comments

Comments
 (0)