mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #8949 from Snuffleupagus/ColorSpace-rm-instanceof-AlternateCS
Remove the `instanceof AlternateCS` check in `ColorSpace.parse` since it's dead code
This commit is contained in:
commit
40b89e9ba4
1 changed files with 1 additions and 4 deletions
|
@ -201,10 +201,7 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|||
};
|
||||
|
||||
ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
|
||||
var IR = ColorSpace.parseToIR(cs, xref, res);
|
||||
if (IR instanceof AlternateCS) {
|
||||
return IR;
|
||||
}
|
||||
let IR = ColorSpace.parseToIR(cs, xref, res);
|
||||
return ColorSpace.fromIR(IR);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue