mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-20 08:49:11 +08:00
remove debug asserts causing test failures
we encountered a fence constructed in the middle of a field for an unknown reason so we demolished it. i think this was intended to catch flaws in the parser logic but the reality is in a pdf anything can happen so we no longer want to catch these issues and this restores a green test run in debug mode. fix for #915
This commit is contained in:
parent
efb8c2a803
commit
2b11961c8c
@ -164,8 +164,6 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should never happen.
|
|
||||||
Debug.Assert(false, "Encountered a start object 'obj' operator before the end of the previous object.");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,9 +189,7 @@
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should never happen.
|
|
||||||
Debug.Assert(false, $"Encountered a '{coreTokenScanner.CurrentToken}' operator before the end of the previous object.");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user