Fix moar ktlint issues
This commit is contained in:
committed by
Benoit Marty
parent
a831f05f6e
commit
5d086ad82d
-1
@@ -36,7 +36,6 @@ class MatrixUserRepository @Inject constructor(
|
||||
private val client: MatrixClient,
|
||||
private val dataSource: UserListDataSource
|
||||
) : UserRepository {
|
||||
|
||||
override fun search(query: String): Flow<UserSearchResultState> = flow {
|
||||
val shouldQueryProfile = MatrixPatterns.isUserId(query) && !client.isMe(UserId(query))
|
||||
val shouldFetchSearchResults = query.length >= MINIMUM_SEARCH_LENGTH
|
||||
|
||||
-1
@@ -30,7 +30,6 @@ import kotlinx.coroutines.test.runTest
|
||||
import org.junit.Test
|
||||
|
||||
internal class MatrixUserListDataSourceTest {
|
||||
|
||||
@Test
|
||||
fun `search - returns users on success`() = runTest {
|
||||
val matrixClient = FakeMatrixClient()
|
||||
|
||||
-1
@@ -33,7 +33,6 @@ import org.junit.Test
|
||||
private val SESSION_ID = SessionId("@current-user:example.com")
|
||||
|
||||
internal class MatrixUserRepositoryTest {
|
||||
|
||||
@Test
|
||||
fun `search - emits nothing if the search query is too short`() = runTest {
|
||||
val dataSource = FakeUserListDataSource()
|
||||
|
||||
Reference in New Issue
Block a user