Skip to content

duplicate return at the end of get_similar_courses (recommendations.py) #830

@SGNayak12

Description

@SGNayak12

Title : Remove duplicate return in get_similar_courses

Summary: recommendations.py has two consecutive return similar_courses[:limit] statements. The second one is unreachable and triggers linting errors.

Expected:Only one return statement.

Actual:Duplicate, unreachable return statement.

Impact:Lint failure and noise in code quality checks.

Proposed Fix:Remove the duplicate return at the end of the function.
Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions