Automatic Lint

This commit is contained in:
Syer10
2022-11-05 00:43:40 +00:00
parent e5e5d50cdf
commit 4f90ddeecd
11 changed files with 13 additions and 15 deletions

View File

@@ -96,7 +96,6 @@ internal open class ProcessChannel<T>(
override fun trySend(element: T): ChannelResult<Unit> {
TODO("not implemented")
}
}
@ExperimentalCoroutinesApi
@@ -185,7 +184,6 @@ internal class PriorityChannelImpl<T>(
outChannel.close()
}
}.start()
}
}
@@ -202,4 +200,4 @@ fun <T> PriorityChannel(
maxCapacity: Int = 4096,
scope: CoroutineScope = GlobalScope,
comparator: Comparator<T>
): Channel<T> = PriorityChannelImpl(maxCapacity, scope, comparator)
): Channel<T> = PriorityChannelImpl(maxCapacity, scope, comparator)

View File

@@ -33,7 +33,7 @@ interface ExtensionRepository {
@Multipart
@POST("api/v1/extension/install")
fun installExtension(
@Part("") formData: List<PartData>,
@Part("") formData: List<PartData>
): Flow<HttpResponse>
@GET("api/v1/extension/install/{pkgName}")

View File

@@ -30,4 +30,4 @@ class GetFilterList @Inject constructor(private val sourceRepository: SourceRepo
companion object {
private val log = logging()
}
}
}

View File

@@ -30,4 +30,4 @@ class GetLatestManga @Inject constructor(private val sourceRepository: SourceRep
companion object {
private val log = logging()
}
}
}

View File

@@ -30,4 +30,4 @@ class GetPopularManga @Inject constructor(private val sourceRepository: SourceRe
companion object {
private val log = logging()
}
}
}

View File

@@ -38,4 +38,4 @@ class GetSearchManga @Inject constructor(private val sourceRepository: SourceRep
companion object {
private val log = logging()
}
}
}

View File

@@ -23,4 +23,4 @@ class GetSourceList @Inject constructor(private val sourceRepository: SourceRepo
companion object {
private val log = logging()
}
}
}

View File

@@ -30,4 +30,4 @@ class GetSourceSettings @Inject constructor(private val sourceRepository: Source
companion object {
private val log = logging()
}
}
}

View File

@@ -49,7 +49,7 @@ class SetSourceFilter @Inject constructor(private val sourceRepository: SourceRe
SourceFilterChange(filterIndex, Json.encodeToString(SourceFilterChange(childFilterIndex, filter)))
)
fun asFlow(sourceId: Long, filterIndex: Int, childFilterIndex: Int,filter: Any) = sourceRepository.setFilter(
fun asFlow(sourceId: Long, filterIndex: Int, childFilterIndex: Int, filter: Any) = sourceRepository.setFilter(
sourceId,
SourceFilterChange(filterIndex, Json.encodeToString(SourceFilterChange(childFilterIndex, filter)))
)
@@ -57,4 +57,4 @@ class SetSourceFilter @Inject constructor(private val sourceRepository: SourceRe
companion object {
private val log = logging()
}
}
}

View File

@@ -37,4 +37,4 @@ class SetSourceSetting @Inject constructor(private val sourceRepository: SourceR
companion object {
private val log = logging()
}
}
}

View File

@@ -185,7 +185,7 @@ fun ExtensionsToolbar(
searchText: String?,
search: (String) -> Unit,
openLanguageDialog: () -> Unit,
openInstallExtensionFile: () -> Unit,
openInstallExtensionFile: () -> Unit
) {
Toolbar(
stringResource(MR.strings.location_extensions),
@@ -330,7 +330,7 @@ fun LanguageDialog(
@Composable
private fun getActionItems(
openLanguageDialog: () -> Unit,
openInstallExtensionFile: () -> Unit,
openInstallExtensionFile: () -> Unit
): ImmutableList<ActionItem> {
return listOf(
ActionItem(