Enable the ESLint operator-assignment rule

This patch was generated automatically, using the `gulp lint --fix` command.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/operator-assignment
This commit is contained in:
Jonas Jenwald 2021-07-04 11:51:11 +02:00
parent de80590157
commit 901b24e8af
13 changed files with 35 additions and 36 deletions

View file

@ -216,7 +216,7 @@ class Page {
if (rotate % 90 !== 0) {
rotate = 0;
} else if (rotate >= 360) {
rotate = rotate % 360;
rotate %= 360;
} else if (rotate < 0) {
// The spec doesn't cover negatives. Assume it's counterclockwise
// rotation. The following is the other implementation of modulo.