File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/java/com/spotify/github/v3/clients Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,13 @@ public class GithubAppClient {
8484 * @throws IllegalStateException if owner is not present
8585 */
8686 private String requireOwner () {
87- return maybeOwner .orElseThrow (() ->
88- new IllegalStateException (
89- "This operation requires an owner context. "
90- + "Use GitHubClient.createOrganisationClient(owner).createGithubAppClient() "
91- + "or GitHubClient.createRepositoryClient(owner, repo).createGithubAppClient() "
92- + "instead of GitHubClient.createGithubAppClient()" ));
87+ return maybeOwner .orElseThrow (
88+ () ->
89+ new IllegalStateException (
90+ "This operation requires an owner context. "
91+ + "Use GitHubClient.createOrganisationClient(owner).createGithubAppClient() "
92+ + "or GitHubClient.createRepositoryClient(owner, repo).createGithubAppClient() "
93+ + "instead of GitHubClient.createGithubAppClient()" ));
9394 }
9495
9596 /**
You can’t perform that action at this time.
0 commit comments