Skip to content

Commit

Permalink
remove void format
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewuu committed Sep 26, 2024
1 parent 0062dc3 commit 6d15beb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/format-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,5 @@ const formatPhp = async (content: string): Promise<string> => {
}

const formatJson = async (content: string): Promise<string> => {
if (content === 'void') {
return '{}'
}

return await prettier(content, { parser: 'json' })
}

0 comments on commit 6d15beb

Please sign in to comment.