Skip to content

Fix NoMethodError on nil.distinct in ProductsFinderDecorator#236

Closed
gulzarhussain112 wants to merge 1 commit intospree:mainfrom
gulzarhussain112:fix-products-finder-nil-safe-distinct
Closed

Fix NoMethodError on nil.distinct in ProductsFinderDecorator#236
gulzarhussain112 wants to merge 1 commit intospree:mainfrom
gulzarhussain112:fix-products-finder-nil-safe-distinct

Conversation

@gulzarhussain112
Copy link
Copy Markdown

  • Added a safeguard in the execute method of ProductsFinderDecorator to handle cases where no products are found.
  • Ensures distinct is only called on a non-nil object.

- Added a safeguard in the `execute` method of ProductsFinderDecorator
  to handle cases where no products are found.
- Ensures `distinct` is only called on a non-nil object.
@damianlegawiec
Copy link
Copy Markdown
Member

Closing in favour of #238

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.

2 participants