Use the ESLint arrow-body-style rule in more spots in src/core/evaluator.js

This commit is contained in:
Jonas Jenwald 2024-01-21 17:41:25 +01:00
parent d1bef8cb86
commit 3c2c0ecd88

View File

@ -1122,9 +1122,8 @@ class PartialEvaluator {
case "Font":
isSimpleGState = false;
// eslint-disable-next-line arrow-body-style
promise = promise.then(() => {
return this.handleSetFont(
promise = promise.then(() =>
this.handleSetFont(
resources,
null,
value[0],
@ -1134,8 +1133,8 @@ class PartialEvaluator {
).then(function (loadedName) {
operatorList.addDependency(loadedName);
gStateObj.push([key, [loadedName, value[1]]]);
});
});
})
);
break;
case "BM":
gStateObj.push([key, normalizeBlendMode(value)]);
@ -1148,17 +1147,16 @@ class PartialEvaluator {
if (value instanceof Dict) {
isSimpleGState = false;
// eslint-disable-next-line arrow-body-style
promise = promise.then(() => {
return this.handleSMask(
promise = promise.then(() =>
this.handleSMask(
value,
resources,
operatorList,
task,
stateManager,
localColorSpaceCache
)
);
});
gStateObj.push([key, true]);
} else {
warn("Unsupported SMask type");