diff --git a/scripts/src/java/org/oppia/android/scripts/common/GitHubClient.kt b/scripts/src/java/org/oppia/android/scripts/common/GitHubClient.kt index d14401d7efd..ff4a72d3734 100644 --- a/scripts/src/java/org/oppia/android/scripts/common/GitHubClient.kt +++ b/scripts/src/java/org/oppia/android/scripts/common/GitHubClient.kt @@ -66,7 +66,7 @@ class GitHubClient( private fun fetchOpenIssues(pageNumber: Int): Deferred> { return CoroutineScope(scriptBgDispatcher).async { val call = gitHubService - .fetchOpenIssues(repoOwner, repoName, authorizationBearer, pageNumber,false) + .fetchOpenIssues(repoOwner, repoName, authorizationBearer, pageNumber, false) // Deferred blocking I/O operation to the dedicated I/O dispatcher. val response = withContext(Dispatchers.IO) { call.execute() } check(response.isSuccessful()) { diff --git a/scripts/src/javatests/org/oppia/android/scripts/todo/TodoOpenCheckTest.kt b/scripts/src/javatests/org/oppia/android/scripts/todo/TodoOpenCheckTest.kt index 0b57593de74..27ebce75c86 100644 --- a/scripts/src/javatests/org/oppia/android/scripts/todo/TodoOpenCheckTest.kt +++ b/scripts/src/javatests/org/oppia/android/scripts/todo/TodoOpenCheckTest.kt @@ -808,15 +808,21 @@ class TodoOpenCheckTest { assertThat(outContent.toString().trim()).isEqualTo(failureMessage) } - private fun setUpGitHubService(issueNumbers: List, pullRequestNumbers: List = emptyList()) { + private fun setUpGitHubService( + issueNumbers: List, + pullRequestNumbers: List = emptyList() + ) { // Create JSON for issues - val issueJsons = issueNumbers.joinToString(separator = ",") { "{\"number\":$it,\"pull_request\":false}" } + val issueJsons = issueNumbers + .joinToString(separator = ",") { "{\"number\":$it,\"pull_request\":false}" } // Create JSON for pull requests - val pullRequestJsons = pullRequestNumbers.joinToString(separator = ",") { "{\"number\":$it,\"pull_request\":true}" } + val pullRequestJsons = pullRequestNumbers + .joinToString(separator = ",") { "{\"number\":$it,\"pull_request\":true}" } // Combine issues and pull requests into one JSON array - val combinedJsons = "[$issueJsons${if (pullRequestNumbers.isNotEmpty()) ", $pullRequestJsons" else ""}]" + val combinedJsons = + "[$issueJsons${if (pullRequestNumbers.isNotEmpty()) ", $pullRequestJsons" else ""}]" // Set up the MockWebServer val mockWebServer = MockWebServer()