skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.64k stars 457 forks source link

bug fix - combined mapped arg with blank string #231

Open akashraghav opened 2 years ago

akashraghav commented 2 years ago

combined x.toString() result with blank string in log.js file line-55, to avoid exception in case x is invalid/undefined, failing to call toString().

should fix :

let s = args.map(x => x.toString()).join(' '); ------------------^ TypeError: Cannot read properties of undefined (reading 'toString')