Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
malachyb committed Dec 6, 2023
1 parent 3d04b62 commit 00df3d5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ private boolean isCPK(@NotNull FileTreeElement element) {
return false;
}

Path cpkPath = element.getFile().toPath();
final Path cpkPath = element.getFile().toPath();
try (JarInputStream cpkStream = new JarInputStream(new BufferedInputStream(Files.newInputStream(cpkPath)))) {
String cpkType = cpkStream.getManifest().getMainAttributes().getValue(CORDA_CPK_TYPE);
final String cpkType = cpkStream.getManifest().getMainAttributes().getValue(CORDA_CPK_TYPE);
return cpkType != null && EXCLUDED_CPK_TYPES.contains(cpkType.toLowerCase());
} catch (IOException e) {
throw new InvalidUserDataException(e.getMessage(), e);
Expand All @@ -85,7 +85,6 @@ private boolean isCPK(@NotNull FileTreeElement element) {

public void checkForDuplicates() {
Set<String> cpkNames = new HashSet<>();
System.out.println("checking duplicates");
FileCollection files = getInputs().getFiles();
for (File file : files) {
Path path = file.toPath();
Expand Down

0 comments on commit 00df3d5

Please sign in to comment.