Skip to content

Commit a88e611

Browse files
committed
Drop empty PostStore constructor in Nuxt example
The class only declared a no-op explicit constructor; field initializers cover what was needed, so let the implicit default constructor handle it. #676 Assisted-by: Claude Code:claude-opus-4-7
1 parent 8a91f8e commit a88e611

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

examples/nuxt/server/store.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ declare global {
1010
class PostStore {
1111
#map: Map<string, Note> = new Map();
1212
#timeline: URL[] = [];
13-
constructor() {}
1413
append(posts: Note[]) {
1514
for (const p of posts) {
1615
if (!p.id) continue;

0 commit comments

Comments
 (0)