Add hint to correct wrong dimension (#1901)

* Add hint to correct wrong dimension

Fix issue #1900

* Revert "Add hint to correct wrong dimension"

This reverts commit 16723b3434.

* Correct wrong dimension to lower value

Fix issue #1900

* Cleanup code

---------

Co-authored-by: Matthias Agethle <matthias.agethle@elca.ch>
This commit is contained in:
magethle 2025-02-04 17:18:13 +01:00 committed by GitHub
parent 2dfb2054af
commit 6ae11863c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,8 @@ public class Detector {
dimension--;
break;
case 3:
throw NotFoundException.getNotFoundInstance();
dimension -= 2;
break;
}
return dimension;
}