Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
huynl-96 committed Oct 25, 2023
1 parent b85a3fa commit 8b5c81c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/release-post/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ const renderPost = results => {
const formatPost = results => {
return new Promise((resolve, reject) => {
format(results.content, { ...prettierConfig, parser: 'markdown' })
.then(formattedContent =>
resolve({ ...results, content: formattedContent })
)
.then(content => resolve({ ...results, content }))
.catch(error => reject(ERRORS.FAILED_FILE_FORMATTING(error.message)));
});
};
Expand Down

0 comments on commit 8b5c81c

Please sign in to comment.