Skip to content

Commit

Permalink
Making one resource inline with other
Browse files Browse the repository at this point in the history
  • Loading branch information
avimanyum committed Feb 8, 2024
1 parent ac16208 commit 77c660f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ public void prepareToCreate(final Namespace ns,
* @param fork A GitHubContentToProcess object that contains the fork repository that is under process
* @return true if the file is found in the path specified and is not disabled, false otherwise
*/
public boolean isRenovateEnabled(List<String> filePaths, GitHubContentToProcess fork) throws IOException {
protected boolean isRenovateEnabled(List<String> filePaths, GitHubContentToProcess fork) throws IOException {
for (String filePath : filePaths) {
try {
GHContent fileContent = fork.getParent().getFileContent(filePath);
JSONObject json;
try (InputStream is = fileContent.read();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is))) {
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileContent.read()))) {
JSONTokener tokener = new JSONTokener(bufferedReader);
json = new JSONObject(tokener);
//If the file has the key 'enabled' set to false, it indicates that while the repo has been onboarded to renovate, it has been disabled for some reason
Expand Down

0 comments on commit 77c660f

Please sign in to comment.