private static GitHubClient createOrThrow()

in src/main/java/com/spotify/github/v3/clients/GitHubClient.java [1205:1224]


  private static GitHubClient createOrThrow(
      final OkHttpClient httpClient,
      final URI baseUrl,
      final URI graphqlUrl,
      final File privateKey,
      final Integer appId,
      final Integer installationId) {
    try {
      return new GitHubClient(
          httpClient,
          baseUrl,
          graphqlUrl,
          null,
          FileUtils.readFileToByteArray(privateKey),
          appId,
          installationId);
    } catch (IOException e) {
      throw new RuntimeException("There was an error generating JWT token", e);
    }
  }