Skip to content

Commit

Permalink
detekt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Karyaev committed Sep 22, 2023
1 parent e6d300f commit 58ffa8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/kotlin/com/ecwid/apiclient/v3/dto/common/Paging.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ interface PagingResult<T> {
val total: Int
}

fun <Request : PagingRequest<Request>, Response : PagingResult<Item>, Item> fetchPagesAsItemSequence(request: Request, serviceMethod: (Request) -> Response): Sequence<Item> = sequence {
fun <Request : PagingRequest<Request>, Response : PagingResult<Item>, Item> fetchPagesAsItemSequence(
request: Request,
serviceMethod: (Request) -> Response,
): Sequence<Item> = sequence {
@Suppress("NAME_SHADOWING")
var request = request

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.ecwid.apiclient.v3.responsefields.ResponseFields
import com.ecwid.apiclient.v3.responsefields.ResponseFieldsBuilder
import kotlin.reflect.KClass

interface PartialResult<@Suppress("UNUSED") FullResult : ApiResultDTO> : ApiResultDTO
interface PartialResult<FullResult : ApiResultDTO> : ApiResultDTO

private val responseFieldsBuilder = ResponseFieldsBuilder()

Expand Down

0 comments on commit 58ffa8e

Please sign in to comment.