File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public GithubAppCheck(final Namespace ns){
6262 * @param fullRepoName = The repository full name, i.e, of the format "owner/repoName". Eg: "Salesforce/dockerfile-image-update"
6363 * @return True if github app is installed, false otherwise.
6464 */
65- protected boolean isGithubAppEnabledOnRepository (String fullRepoName ){
65+ protected boolean isGithubAppEnabledOnRepository (String fullRepoName ) {
6666 refreshJwtIfNeeded (appId , privateKeyPath );
6767 try {
6868 gitHub .getApp ().getInstallationByRepository (fullRepoName .split ("/" )[0 ], fullRepoName .split ("/" )[1 ]);
@@ -85,7 +85,7 @@ protected boolean isGithubAppEnabledOnRepository(String fullRepoName){
8585 * @param appId = The id of the Github App to generate the JWT for
8686 * @param privateKeyPath = The path to the private key of the Github App to generate the JWT for
8787 */
88- private void refreshJwtIfNeeded (String appId , String privateKeyPath ){
88+ private void refreshJwtIfNeeded (String appId , String privateKeyPath ) {
8989 if (jwt == null || jwtExpiry .isBefore (Instant .now ().minusSeconds (60 ))) { // Adding a buffer to ensure token validity
9090 try {
9191 generateJWT (appId , privateKeyPath );
You can’t perform that action at this time.
0 commit comments