Skip to content

Commit e848451

Browse files
committed
fix: scale ensure no loss
1 parent cd2e48e commit e848451

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/kysor/src/kysor.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,16 @@ export const run = async (options: any) => {
406406

407407
if (options.ensureNoLoss) {
408408
args.push("--ensure-no-loss");
409-
args.push(`--scale-ensure-no-loss`);
410-
args.push(`${options.scaleEnsureNoLoss}`);
411409
} else {
412410
args.push("--ensure-no-loss");
413411
args.push(`${false}`);
414412
}
415413

414+
if (options.scaleEnsureNoLoss > 0) {
415+
args.push(`--scale-ensure-no-loss`);
416+
args.push(`${options.scaleEnsureNoLoss}`);
417+
}
418+
416419
if (options.debug) {
417420
args.push("--debug");
418421
}

0 commit comments

Comments
 (0)