Skip to content

Commit

Permalink
Update codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Nov 3, 2023
1 parent bb45a87 commit 093b950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import okhttp3.OkHttpClient
import java.net.URI
import java.util.concurrent.Executor

public class IssueChecker(
config: Config,
) {
public class IssueChecker(config: Config) {

public data class Config(
val githubToken: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import retrofit2.http.GET
import retrofit2.http.Path
import java.net.URI

internal class GithubStatusResolver(
private val service: GithubService,
) : StatusResolver {
internal class GithubStatusResolver(private val service: GithubService) : StatusResolver {

override suspend fun resolve(url: URI): IssueStatus {
val result = handledPattern.find(url.toString())?.groups ?: throw IllegalArgumentException("Couldn't parse $url")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import retrofit2.http.GET
import retrofit2.http.Path
import java.net.URI

internal class YoutrackStatusResolver(
private val service: YoutrackService,
) : StatusResolver {
internal class YoutrackStatusResolver(private val service: YoutrackService) : StatusResolver {

override fun handles(url: URI): Boolean = pattern.containsMatchIn(url.toString())

Expand Down

0 comments on commit 093b950

Please sign in to comment.