Skip to content

Commit 94639fa

Browse files
CID-2918: addressing PR comments
1 parent 8820770 commit 94639fa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/kotlin/net/leanix/githubagent/services/GitHubGraphQLService.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ class GitHubGraphQLService(
100100
throw GraphQLApiException(result.errors!!)
101101
}
102102

103-
return (
104-
result.data?.repository?.manifestFile as?
105-
net.leanix.githubagent.graphql.`data`.getrepositorymanifestcontent.Blob
106-
)?.text
103+
return (result.data?.repository?.manifestFile as? RepositoryManifestBlob)?.text
107104
}
108105

109106
private fun buildGitHubGraphQLClient(
@@ -114,3 +111,5 @@ class GitHubGraphQLService(
114111
builder = WebClient.builder().defaultHeaders { it.setBearerAuth(token) }
115112
)
116113
}
114+
115+
typealias RepositoryManifestBlob = net.leanix.githubagent.graphql.`data`.getrepositorymanifestcontent.Blob

0 commit comments

Comments
 (0)