This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor: fix ESLint no-case-declarations errors in CardMapper

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+4 -2
+4 -2
src/modules/cards/infrastructure/repositories/mappers/CardMapper.ts
··· 177 177 ): Result<CardContent> { 178 178 try { 179 179 switch (type) { 180 - case CardTypeEnum.URL: 180 + case CardTypeEnum.URL: { 181 181 const urlData = data as UrlContentData; 182 182 const urlOrError = URL.create(urlData.url); 183 183 if (urlOrError.isErr()) return err(urlOrError.error); ··· 202 202 } 203 203 204 204 return CardContent.createUrlContent(urlOrError.value, metadata); 205 + } 205 206 206 - case CardTypeEnum.NOTE: 207 + case CardTypeEnum.NOTE: { 207 208 const noteData = data as NoteContentData; 208 209 const authorIdResult = CuratorId.create(noteData.authorId); 209 210 if (authorIdResult.isErr()) return err(authorIdResult.error); 210 211 return CardContent.createNoteContent(noteData.text); 212 + } 211 213 212 214 default: 213 215 return err(new Error(`Unknown card type: ${type}`));