mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Enable the no-typeof-undefined
ESLint plugin rule
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
This commit is contained in:
parent
4793a0717f
commit
47dbfc4ade
7 changed files with 8 additions and 9 deletions
|
@ -1870,8 +1870,7 @@ class CanvasGraphics {
|
|||
this.ctx.closePath();
|
||||
}
|
||||
|
||||
stroke(consumePath) {
|
||||
consumePath = typeof consumePath !== "undefined" ? consumePath : true;
|
||||
stroke(consumePath = true) {
|
||||
const ctx = this.ctx;
|
||||
const strokeColor = this.current.strokeColor;
|
||||
// For stroke we want to temporarily change the global alpha to the
|
||||
|
@ -1904,8 +1903,7 @@ class CanvasGraphics {
|
|||
this.stroke();
|
||||
}
|
||||
|
||||
fill(consumePath) {
|
||||
consumePath = typeof consumePath !== "undefined" ? consumePath : true;
|
||||
fill(consumePath = true) {
|
||||
const ctx = this.ctx;
|
||||
const fillColor = this.current.fillColor;
|
||||
const isPatternFill = this.current.patternFill;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue