mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Fix lint
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 270 KiB After Width: | Height: | Size: 517 KiB |
@@ -37,8 +37,7 @@ module.exports = class ApprovedCommand extends Command {
|
|||||||
ctx.drawImage(data, 0, 0);
|
ctx.drawImage(data, 0, 0);
|
||||||
const dataRatio = data.width / data.height;
|
const dataRatio = data.width / data.height;
|
||||||
const baseRatio = base.width / base.height;
|
const baseRatio = base.width / base.height;
|
||||||
let width = data.width;
|
let { width, height } = data;
|
||||||
let height = data.height;
|
|
||||||
let x = 0;
|
let x = 0;
|
||||||
let y = 0;
|
let y = 0;
|
||||||
if (baseRatio < dataRatio) {
|
if (baseRatio < dataRatio) {
|
||||||
|
|||||||
@@ -37,8 +37,7 @@ module.exports = class RejctedCommand extends Command {
|
|||||||
ctx.drawImage(data, 0, 0);
|
ctx.drawImage(data, 0, 0);
|
||||||
const dataRatio = data.width / data.height;
|
const dataRatio = data.width / data.height;
|
||||||
const baseRatio = base.width / base.height;
|
const baseRatio = base.width / base.height;
|
||||||
let width = data.width;
|
let { width, height } = data;
|
||||||
let height = data.height;
|
|
||||||
let x = 0;
|
let x = 0;
|
||||||
let y = 0;
|
let y = 0;
|
||||||
if (baseRatio < dataRatio) {
|
if (baseRatio < dataRatio) {
|
||||||
|
|||||||
Reference in New Issue
Block a user