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

fix(check-version): change to return cached latest version only if valid #28

Merged
merged 1 commit into from
May 19, 2024

Conversation

alissonperez
Copy link
Owner

@alissonperez alissonperez commented May 19, 2024

Ref. None

What was done?

The function cache_daily_version was modified to return the cached latest version only if it is valid (i.e., not None).

How was it done?

A check was added to ensure that the cached latest version is returned only if it is not None. This prevents the function from returning an invalid cached version.

How was it tested?

The change was tested by simulating scenarios where the cache contains a valid version, an invalid version (None), and no version at all. The function was observed to return the correct version or proceed to fetch a new version as expected.

@alissonperez alissonperez self-assigned this May 19, 2024
@alissonperez alissonperez merged commit 060de82 into main May 19, 2024
2 checks passed
@alissonperez alissonperez deleted the fix/check-last-version branch May 19, 2024 03:12
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