Use the ESLint arrow-body-style
rule in more spots in src/core/evaluator.js
This commit is contained in:
parent
d1bef8cb86
commit
3c2c0ecd88
@ -1122,9 +1122,8 @@ class PartialEvaluator {
|
|||||||
case "Font":
|
case "Font":
|
||||||
isSimpleGState = false;
|
isSimpleGState = false;
|
||||||
|
|
||||||
// eslint-disable-next-line arrow-body-style
|
promise = promise.then(() =>
|
||||||
promise = promise.then(() => {
|
this.handleSetFont(
|
||||||
return this.handleSetFont(
|
|
||||||
resources,
|
resources,
|
||||||
null,
|
null,
|
||||||
value[0],
|
value[0],
|
||||||
@ -1134,8 +1133,8 @@ class PartialEvaluator {
|
|||||||
).then(function (loadedName) {
|
).then(function (loadedName) {
|
||||||
operatorList.addDependency(loadedName);
|
operatorList.addDependency(loadedName);
|
||||||
gStateObj.push([key, [loadedName, value[1]]]);
|
gStateObj.push([key, [loadedName, value[1]]]);
|
||||||
});
|
})
|
||||||
});
|
);
|
||||||
break;
|
break;
|
||||||
case "BM":
|
case "BM":
|
||||||
gStateObj.push([key, normalizeBlendMode(value)]);
|
gStateObj.push([key, normalizeBlendMode(value)]);
|
||||||
@ -1148,17 +1147,16 @@ class PartialEvaluator {
|
|||||||
if (value instanceof Dict) {
|
if (value instanceof Dict) {
|
||||||
isSimpleGState = false;
|
isSimpleGState = false;
|
||||||
|
|
||||||
// eslint-disable-next-line arrow-body-style
|
promise = promise.then(() =>
|
||||||
promise = promise.then(() => {
|
this.handleSMask(
|
||||||
return this.handleSMask(
|
|
||||||
value,
|
value,
|
||||||
resources,
|
resources,
|
||||||
operatorList,
|
operatorList,
|
||||||
task,
|
task,
|
||||||
stateManager,
|
stateManager,
|
||||||
localColorSpaceCache
|
localColorSpaceCache
|
||||||
);
|
)
|
||||||
});
|
);
|
||||||
gStateObj.push([key, true]);
|
gStateObj.push([key, true]);
|
||||||
} else {
|
} else {
|
||||||
warn("Unsupported SMask type");
|
warn("Unsupported SMask type");
|
||||||
|
Loading…
Reference in New Issue
Block a user