fix: allow duplicate logview.init calls
This commit is contained in:
parent
4df737e78f
commit
042b2f330d
1 changed files with 2 additions and 2 deletions
|
@ -141,6 +141,6 @@ fn get_buffer() *Buffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(a: Allocator) void {
|
pub fn init(a: Allocator) void {
|
||||||
if (persistent_buffer) |_| @panic("logview.init unexpected call");
|
if (persistent_buffer) |_| return;
|
||||||
persistent_buffer = Buffer.init(a);
|
persistent_buffer = Buffer.init(a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue