Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Redundant None Check for vector_similarity_weight (infiniflow#…
…4037) ### What problem does this PR solve? The removed if statement is unnecessary and adds cognitive load for readers. The original code: ``` vector_similarity_weight = req.get("vector_similarity_weight", 0.3) if vector_similarity_weight is None: vector_similarity_weight = 0.3 ``` has been simplified to: ``` vector_similarity_weight = req.get("vector_similarity_weight", 0.3) ``` ### Type of change - [x] Refactoring
- Loading branch information