mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
41d1e59322
commit
7189159cb0
|
@ -71,7 +71,6 @@ class MuteProcessServiceImpl : MuteProcessService {
|
|||
it,
|
||||
precompileRegex(it)
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
return filterQueryModelList
|
||||
|
@ -93,11 +92,9 @@ class MuteProcessServiceImpl : MuteProcessService {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
val noneRegex = noneRegexStrings.joinToString("|", "(", ")")
|
||||
val wholeRegex = wholeRegexStrings.joinToString("|", "\\b(", ")\\b")
|
||||
|
||||
|
||||
val regex = if (noneRegexStrings.isNotEmpty() && wholeRegexStrings.isNotEmpty()) {
|
||||
Regex("$noneRegex|$wholeRegex")
|
||||
} else if (noneRegexStrings.isNotEmpty()) {
|
||||
|
|
|
@ -2,7 +2,6 @@ package dev.usbharu.hideout.mastodon.interfaces.api.filter
|
|||
|
||||
import dev.usbharu.hideout.controller.mastodon.generated.FilterApi
|
||||
import dev.usbharu.hideout.domain.mastodon.model.generated.*
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import org.springframework.http.ResponseEntity
|
||||
import org.springframework.stereotype.Controller
|
||||
|
||||
|
|
Loading…
Reference in New Issue