mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: add no-new-array rule (#5117)
This commit is contained in:
@@ -3,7 +3,7 @@ export const TRACE_ID_BYTES = 16;
|
||||
export const TRACE_VERSION = '00';
|
||||
export const TRACE_FLAG = '01';
|
||||
|
||||
const BytesBuffer = new Array(32);
|
||||
const BytesBuffer = Array.from<number>({ length: 32 });
|
||||
|
||||
type TraceSpan = {
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user