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> { override fun trySend(element: T): ChannelResult<Unit> {
TODO("not implemented") TODO("not implemented")
} }
} }
@ExperimentalCoroutinesApi @ExperimentalCoroutinesApi
@@ -185,7 +184,6 @@ internal class PriorityChannelImpl<T>(
outChannel.close() outChannel.close()
} }
}.start() }.start()
} }
} }

View File

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

View File

@@ -49,7 +49,7 @@ class SetSourceFilter @Inject constructor(private val sourceRepository: SourceRe
SourceFilterChange(filterIndex, Json.encodeToString(SourceFilterChange(childFilterIndex, filter))) 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, sourceId,
SourceFilterChange(filterIndex, Json.encodeToString(SourceFilterChange(childFilterIndex, filter))) SourceFilterChange(filterIndex, Json.encodeToString(SourceFilterChange(childFilterIndex, filter)))
) )

View File

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