Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add null check before calling project_evaluated #64

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

farmanp
Copy link
Contributor

@farmanp farmanp commented Jun 20, 2024

Title: Add null check before calling project_evaluated

Body:

Description

This PR adds a null check in the evaluate method of the Evaluation class before calling project_evaluated on the formatter. This ensures that project_evaluated is only called if there are models to evaluate, thus skipping the output when no model is found.

Changes Made

Added a null check in the evaluate method of the Evaluation class.

Copy link
Contributor

@jochemvandooren jochemvandooren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Could you add it to the CHANGELOG? 🙏

CHANGELOG.md Outdated Show resolved Hide resolved
@farmanp farmanp requested a review from jochemvandooren June 24, 2024 13:45
Copy link
Contributor

@jochemvandooren jochemvandooren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Copy link
Contributor

@matthieucan matthieucan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful, thank you for your contribution @farmanp ! 🚀

@matthieucan matthieucan merged commit 1259fc2 into PicnicSupermarket:master Jun 24, 2024
3 checks passed
@jochemvandooren jochemvandooren linked an issue Jun 26, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Full score when model is not found
3 participants