Skip to content

Commit 2594f38

Browse files
committed
Dummy commit to generate the PR checks again
1 parent 9685288 commit 2594f38

File tree

1 file changed

+2
-2
lines changed
  • dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils

1 file changed

+2
-2
lines changed

dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GithubAppCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)