mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -23542,13 +23542,13 @@ fn NewParser_(
|
||||
.result => |path| path,
|
||||
}) |path| {
|
||||
const rel_path = if (strings.hasPrefix(path, source_dir)) path[source_dir.len + @intFromBool(path[source_dir.len] == '/') ..] else path;
|
||||
|
||||
|
||||
var path_buf: bun.PathBuffer = undefined;
|
||||
const slash_normalized = if (bun.Environment.isWindows)
|
||||
strings.normalizeSlashesOnly(&path_buf, rel_path, '/')
|
||||
else
|
||||
rel_path;
|
||||
|
||||
|
||||
const normalized = if (strings.hasPrefix(slash_normalized, "./"))
|
||||
p.allocator.dupe(u8, slash_normalized) catch unreachable
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user