style: 不要なプライマリコンストラクタを削除

This commit is contained in:
usbharu 2024-01-24 16:18:11 +09:00
parent d9b1f0dfd7
commit ea04150501
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import org.jsoup.select.Elements
import org.springframework.stereotype.Service
@Service
class DefaultPostContentFormatter() : PostContentFormatter {
class DefaultPostContentFormatter : PostContentFormatter {
override fun format(content: String): FormattedPostContent {
val document =
Jsoup.parseBodyFragment(content).getElementsByTag("body").first() ?: return FormattedPostContent("", "")