Skip to content
Snippets Groups Projects
Commit 6e084735 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Assert tiff type in parseTiff.

parent a8a7cf89
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,11 @@ public class ParsedCliOptions {
}
private void parseTiffFileArguments(StringBuilder errorBuilder, String[] inputFileArguments) {
// inputFileInfo is already created with TIFF type.
assert (inputFileInfo.getFileType() == FileType.TIFF) : "Not TIFF type in parse Tiff arguments.";
errorOccurred = true;
errorBuilder.append("Got TIFF file.\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment