This commit is contained in:
2026-08-14 16:03:47 +01:00
parent fd53e3f4fb
commit dfdc3b2840
2463 changed files with 186456 additions and 111315 deletions
+2 -6
View File
@@ -90,9 +90,7 @@ class ReadEntry extends minipass_1.Minipass {
this.ctime = header.ctime;
/* c8 ignore start */
this.linkpath =
header.linkpath ?
(0, normalize_windows_path_js_1.normalizeWindowsPath)(header.linkpath)
: undefined;
header.linkpath ? (0, normalize_windows_path_js_1.normalizeWindowsPath)(header.linkpath) : undefined;
/* c8 ignore stop */
this.uname = header.uname;
this.gname = header.gname;
@@ -130,9 +128,7 @@ class ReadEntry extends minipass_1.Minipass {
// we slurp in everything except for the path attribute in
// a global extended header, because that's weird. Also, any
// null/undefined values are ignored.
return !(v === null ||
v === undefined ||
(k === 'path' && gex));
return !(v === null || v === undefined || (k === 'path' && gex));
})));
}
}