Skip to content

Commit

Permalink
testSaneUsedFiles: check getCurrentFile is the first file in the getU…
Browse files Browse the repository at this point in the history
…sedFiles list
  • Loading branch information
sbesson committed Mar 25, 2024
1 parent 8bcb3c3 commit 2a60d54
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1866,10 +1866,9 @@ public void testSaneUsedFiles() {
msg = "Used files list contains duplicates";
}

if (base.length == 1) {
if (!base[0].equals(file)) success = false;
}
else if (success) {
if (!base[0].equals(file)) success = false;

if (success) {
Arrays.sort(base);
IFormatReader r =
/*config.noStitching() ? new ImageReader() :*/ new ImageReader();
Expand Down

0 comments on commit 2a60d54

Please sign in to comment.