refactor: use strings.eql instead of std.mem.eql

This commit is contained in:
RiskyMH
2025-12-01 17:05:14 +11:00
parent a1d32e96a3
commit b77362bcad

View File

@@ -1050,7 +1050,7 @@ pub fn writeFileWithSourceDestination(ctx: *jsc.JSGlobalObject, source_blob: *Bl
const dest_pathlike = &destination_store.data.file.pathlike;
const src_pathlike = &source_store.data.file.pathlike;
if (dest_pathlike.* == .path and src_pathlike.* == .path) {
if (std.mem.eql(u8, dest_pathlike.path.slice(), src_pathlike.path.slice())) {
if (strings.eql(dest_pathlike.path.slice(), src_pathlike.path.slice())) {
if (source_blob.size == Blob.max_size) {
source_blob.resolveSize();
}