formacao
This commit is contained in:
+2
-2
@@ -17,7 +17,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 = join(s, path);
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export 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