Skip to content

Fix logic error in chooseResume method#100

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-9cd7
Draft

Fix logic error in chooseResume method#100
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-9cd7

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented Mar 30, 2026

Summary

Fixed a logic error in the chooseResume method in linkedin.py where an always-false condition was preventing proper error handling.

Changes

  • File: linkedin.py (line 311)
  • Issue: The condition type(len(resumes)) != int was always False because len() always returns an integer
  • Fix: Replaced with len(resumes) == 0 to properly detect when no resumes are available

Impact

This fix ensures that users receive the error message when no resumes are found in their LinkedIn account, instead of silently failing to select a resume.

Open in Web View Automation 

…ty list check

Replace the always-false condition 'type(len(resumes)) != int' with the correct
check 'len(resumes) == 0' to properly detect when no resumes are available.

The type() check was a logic anti-pattern that would never trigger the error
message, preventing proper feedback when no resumes are found.

Co-authored-by: Ongun Demirag <ongun@ongundemirag.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant