Commit 2c1e2806 authored by nanahira's avatar nanahira

fix

parent e8008a5f
...@@ -176,7 +176,7 @@ async function main() { ...@@ -176,7 +176,7 @@ async function main() {
console.log(JSON.stringify(card)); console.log(JSON.stringify(card));
} }
console.log(`Size: ${cards.length}`); console.log(`Size: ${cards.length}`);
if (cards.length) { if (cards.length > 1) {
const median = getMedianCode(cards); const median = getMedianCode(cards);
console.log(`Median: ${median}`); console.log(`Median: ${median}`);
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment