mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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);
|
||||
const dataRatio = data.width / data.height;
|
||||
const baseRatio = base.width / base.height;
|
||||
let width = data.width;
|
||||
let height = data.height;
|
||||
let { width, height } = data;
|
||||
let x = 0;
|
||||
let y = 0;
|
||||
if (baseRatio < dataRatio) {
|
||||
|
||||
@@ -37,8 +37,7 @@ module.exports = class RejctedCommand extends Command {
|
||||
ctx.drawImage(data, 0, 0);
|
||||
const dataRatio = data.width / data.height;
|
||||
const baseRatio = base.width / base.height;
|
||||
let width = data.width;
|
||||
let height = data.height;
|
||||
let { width, height } = data;
|
||||
let x = 0;
|
||||
let y = 0;
|
||||
if (baseRatio < dataRatio) {
|
||||
|
||||
Reference in New Issue
Block a user