Skip to content

Commit

Permalink
Detekt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizrahman committed Dec 13, 2024
1 parent 576aec4 commit f9bad88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class WCOrderStoreTest {
}

@Test
fun `given mixed success and failure response when batch updating status then returns successful and failed orders`() {
fun `given mixed response when batch updating status then returns successful and failed orders`() {
runBlocking {
// Given
val site = SiteModel().apply { id = 1 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ class OrderRestClient @Inject constructor(
"tracking_provider"
).joinToString(separator = ",")

private val BATCH_UPDATE_LIMIT = 100
private const val BATCH_UPDATE_LIMIT = 100
}

enum class SortOrder(val value: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import org.wordpress.android.fluxc.network.rest.wpcom.wc.WooError
import org.wordpress.android.fluxc.network.rest.wpcom.wc.WooErrorType.API_ERROR
import org.wordpress.android.fluxc.network.rest.wpcom.wc.WooResult
import org.wordpress.android.fluxc.network.rest.wpcom.wc.order.BatchOrderApiResponse
import org.wordpress.android.fluxc.network.rest.wpcom.wc.order.BatchOrderApiResponse.ErrorResponse
import org.wordpress.android.fluxc.network.rest.wpcom.wc.order.OrderRestClient
import org.wordpress.android.fluxc.network.rest.wpcom.wc.order.OrderRestClient.OrderBy
import org.wordpress.android.fluxc.network.rest.wpcom.wc.order.OrderRestClient.SortOrder
Expand Down Expand Up @@ -1171,6 +1170,7 @@ class WCOrderStore @Inject constructor(
}
}

@Suppress("NestedBlockDepth")
suspend fun batchUpdateOrdersStatus(
site: SiteModel,
orderIds: List<Long>,
Expand Down

0 comments on commit f9bad88

Please sign in to comment.