Skip to content

Commit

Permalink
URL stuff is metastable
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Jun 5, 2024
1 parent dabef16 commit 8eb18e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ private void handleJPEG(ValidationTarget target, URL fileRef, TinyNodeImpl fileO
}

jpegValidateFlag = this.imageUtil.isJPEG(jpegName, new URL(parent,
directory.endsWith("/") ? directory : (directory + "/")));
directory.endsWith("/") || directory.isBlank() ? directory : (directory + "/")));

// Report a warning if the JPEG file is not compliant.
if (!jpegValidateFlag) {
Expand Down Expand Up @@ -868,7 +868,7 @@ private void handlePNG(ValidationTarget target, URL fileRef, TinyNodeImpl fileOb
}

validateFlag = this.imageUtil.isPNG(pngName, new URL(parent,
directory.endsWith("/") ? directory : (directory + "/")));
directory.endsWith("/") || directory.isBlank() ? directory : (directory + "/")));

// Report a warning if the PNG file is not compliant.
if (!validateFlag) {
Expand Down

0 comments on commit 8eb18e3

Please sign in to comment.