fix: respect zero LinkedIn result limits (#76)

This commit is contained in:
Kushida
2026-07-08 20:57:41 +02:00
committed by GitHub
parent 05e886c855
commit fc9e3e1f32
2 changed files with 43 additions and 1 deletions
@@ -55,7 +55,7 @@ export async function runSearch(opts: SearchOpts): Promise<number> {
try {
const html = await htmlFetch(buildUrl(opts))
let cards = parseJobCards(html)
if (opts.limit && opts.limit > 0) cards = cards.slice(0, opts.limit)
if (opts.limit !== undefined && opts.limit >= 0) cards = cards.slice(0, opts.limit)
if (opts.format === "table") {
process.stdout.write(renderTable(cards) + "\n")