Skip to content

Commit a5b6a83

Browse files
Copilothotlong
andcommitted
Fix lint error: wrap case block in braces for lexical declarations
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent f0db35d commit a5b6a83

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/data-objectstack/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,14 @@ export class ObjectStackAdapter<T = unknown> implements DataSource<T> {
347347

348348
try {
349349
switch (operation) {
350-
case 'create':
350+
case 'create': {
351351
emitProgress();
352352
const created = await this.client.data.createMany<T>(resource, data);
353353
completed = created.length;
354354
failed = total - completed;
355355
emitProgress();
356356
return created;
357+
}
357358

358359
case 'delete': {
359360
const ids = data.map(item => (item as Record<string, unknown>).id).filter(Boolean) as string[];

0 commit comments

Comments
 (0)