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

This commit is contained in:
usbharu 2024-01-24 16:18:11 +09:00
parent 6febcbec0c
commit 90188adde9
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
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("", "")