ESLint Disable no-constant-condition in Canvas

This commit is contained in:
Christian Paul 2017-12-23 00:15:40 -08:00
parent f6485d9830
commit 1f7245644e

View File

@ -110,6 +110,7 @@ class Canvas {
width = (width + 1) / 2; width = (width + 1) / 2;
/* eslint-disable no-constant-condition */
while (true) { while (true) {
this.buffer.setPixel(x0, y0, color); this.buffer.setPixel(x0, y0, color);
let e2 = err; let e2 = err;
@ -141,6 +142,7 @@ class Canvas {
y0 += sy; y0 += sy;
} }
} }
/* eslint-enable */
} }
_filledRectangle(x, y, width, height, color) { _filledRectangle(x, y, width, height, color) {