Skip to content

Commit

Permalink
Remove unnecessary CPC+ Apm file check
Browse files Browse the repository at this point in the history
  • Loading branch information
saquino0827 committed Sep 11, 2023
1 parent 71e90f9 commit b6aa266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public class ApmEntityIds {

private Set<String> validPcfApmEntityIds;

public ApmEntityIds(InputStream cpcPlusFileStream, InputStream pcfFilestream) {
validCpcPlusApmEntityIds = JsonHelper.readJson(cpcPlusFileStream, SET_OF_STRINGS_TYPE);
public ApmEntityIds(InputStream pcfFilestream) {
validPcfApmEntityIds = JsonHelper.readJson(pcfFilestream, SET_OF_STRINGS_TYPE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private ApmEntityIds retrieveApmEntityValidationFile() {
API_LOG.info("Trying to fetch the Pcf APM Validation file");
InputStream pcfApmInputStream = retrieveApmValidationFile(Constants.PCF_APM_FILE_NAME_KEY);

return cpcPlusApmInputStream != null ? new ApmEntityIds(cpcPlusApmInputStream, pcfApmInputStream) : new ApmEntityIds();
return pcfApmInputStream != null ? new ApmEntityIds(pcfApmInputStream) : new ApmEntityIds();
}

/**
Expand Down

0 comments on commit b6aa266

Please sign in to comment.