Skip to content

Commit 72967d7

Browse files
committed
fix: lint
1 parent 7ef5fe0 commit 72967d7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/helpers/markdownToState.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function markdownToState(markdown, options = {}) {
260260

261261
// when there is no content, add empty paragraph
262262
if (parsedData.length === 0) {
263-
blocks.push(getNewBlock(BlockTypes['paragraph_open']()));
263+
blocks.push(getNewBlock(BlockTypes['paragraph_open']()))
264264
}
265265

266266
parsedData.forEach((item) => {
@@ -353,26 +353,26 @@ function markdownToState(markdown, options = {}) {
353353
}, DefaultBlockType)
354354
}
355355

356-
let result;
356+
let result
357357
try {
358358
result = convertFromRaw({
359359
entityMap,
360360
blocks,
361-
});
361+
})
362362
} catch(error) {
363363
// If any error occurs set value to plain text
364-
const plainTextBlock = getNewBlock(BlockTypes['paragraph_open']());
365-
plainTextBlock.text = markdown;
366-
364+
const plainTextBlock = getNewBlock(BlockTypes['paragraph_open']())
365+
plainTextBlock.text = markdown
366+
367367
result = convertFromRaw({
368368
entityMap: [],
369369
blocks: [plainTextBlock],
370-
});
370+
})
371371

372372
Alert.warning('Some message could not be rendered properly, please contact Topcoder Support')
373373
}
374374

375-
return result;
375+
return result
376376
}
377377

378378
export default markdownToState

0 commit comments

Comments
 (0)