mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
refactor: use strings.eql instead of std.mem.eql
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user