Skip to content

Commit 36fe1d6

Browse files
committed
format
1 parent 9c57a77 commit 36fe1d6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/com/spotify/github/v3/clients/GithubAppClient.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)