mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-15 10:03:47 +00:00
style: fix lint
This commit is contained in:
@@ -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()) {
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user