Skip to content

Commit

Permalink
Revert "Guard against files that don't exist."
Browse files Browse the repository at this point in the history
This reverts commit 70f01d4. It works
even when the files "don't" exist.
  • Loading branch information
khatchad committed Mar 29, 2024
1 parent ba51633 commit 89a3ae9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2366,12 +2366,7 @@ public String getSignature() {
// Remove protocol.
pathEntryAbsolutePath = pathEntryAbsolutePath.replaceFirst("file:.*!/", "");

File absoluteFile = file.getAbsoluteFile();

if (!absoluteFile.exists())
throw new IllegalStateException("Can't find: " + absoluteFile + ".");

String fileAbsolutePath = absoluteFile.getPath();
String fileAbsolutePath = file.getAbsolutePath();

if (fileAbsolutePath.startsWith(pathEntryAbsolutePath)) {
// Found it.
Expand Down

0 comments on commit 89a3ae9

Please sign in to comment.