Skip to content

Commit

Permalink
Fix invalid radix in cli (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 21, 2021
1 parent bc5c4ea commit e8d563c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/svgo/coa.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function action(args, opts, command) {
var config = {};

if (opts.precision != null) {
const number = Number.parseInt(opts.precision, 0);
const number = Number.parseInt(opts.precision, 10);
if (Number.isNaN(number)) {
console.error(
"error: option '-p, --precision' argument must be an integer number"
Expand All @@ -97,7 +97,7 @@ async function action(args, opts, command) {
}

if (opts.indent != null) {
const number = Number.parseInt(opts.indent, 0);
const number = Number.parseInt(opts.indent, 10);
if (Number.isNaN(number)) {
console.error(
"error: option '--indent' argument must be an integer number"
Expand Down

0 comments on commit e8d563c

Please sign in to comment.