formacao
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ const getDirs = (path) => {
|
||||
.split('/')
|
||||
.slice(0, -1)
|
||||
.reduce((set, path) => {
|
||||
const s = set[set.length - 1];
|
||||
const s = set.at(-1);
|
||||
if (s !== undefined) {
|
||||
path = (0, node_path_1.join)(s, path);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ class PathReservations {
|
||||
this.#queues.set(dir, [new Set([fn])]);
|
||||
}
|
||||
else {
|
||||
const l = q[q.length - 1];
|
||||
const l = q.at(-1);
|
||||
if (l instanceof Set) {
|
||||
l.add(fn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user