clean up copy constructor
This commit is contained in:
parent
d1b5b54bad
commit
0a09e6d86a
@ -36,10 +36,8 @@ export class LatestNote {
|
||||
public note: MiNote | null;
|
||||
|
||||
constructor(data: Partial<LatestNote>) {
|
||||
if (data == null) return;
|
||||
|
||||
for (const [k, v] of Object.entries(data)) {
|
||||
(this as any)[k] = v;
|
||||
(this as Record<string, unknown>)[k] = v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user