mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
Redact secrets in bunfig.toml and npmrc logs (#14919)
This commit is contained in:
@@ -341,7 +341,7 @@ pub const String = extern struct {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
pub fn toOwnedSliceReturningAllASCII(this: String, allocator: std.mem.Allocator) !struct { []u8, bool } {
|
||||
pub fn toOwnedSliceReturningAllASCII(this: String, allocator: std.mem.Allocator) OOM!struct { []u8, bool } {
|
||||
switch (this.tag) {
|
||||
.ZigString => return .{ try this.value.ZigString.toOwnedSlice(allocator), true },
|
||||
.WTFStringImpl => {
|
||||
|
||||
Reference in New Issue
Block a user