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,
|
it,
|
||||||
precompileRegex(it)
|
precompileRegex(it)
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return filterQueryModelList
|
return filterQueryModelList
|
||||||
|
@ -93,11 +92,9 @@ class MuteProcessServiceImpl : MuteProcessService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
val noneRegex = noneRegexStrings.joinToString("|", "(", ")")
|
val noneRegex = noneRegexStrings.joinToString("|", "(", ")")
|
||||||
val wholeRegex = wholeRegexStrings.joinToString("|", "\\b(", ")\\b")
|
val wholeRegex = wholeRegexStrings.joinToString("|", "\\b(", ")\\b")
|
||||||
|
|
||||||
|
|
||||||
val regex = if (noneRegexStrings.isNotEmpty() && wholeRegexStrings.isNotEmpty()) {
|
val regex = if (noneRegexStrings.isNotEmpty() && wholeRegexStrings.isNotEmpty()) {
|
||||||
Regex("$noneRegex|$wholeRegex")
|
Regex("$noneRegex|$wholeRegex")
|
||||||
} else if (noneRegexStrings.isNotEmpty()) {
|
} 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.controller.mastodon.generated.FilterApi
|
||||||
import dev.usbharu.hideout.domain.mastodon.model.generated.*
|
import dev.usbharu.hideout.domain.mastodon.model.generated.*
|
||||||
import kotlinx.coroutines.flow.Flow
|
|
||||||
import org.springframework.http.ResponseEntity
|
import org.springframework.http.ResponseEntity
|
||||||
import org.springframework.stereotype.Controller
|
import org.springframework.stereotype.Controller
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue