Skip to content

Conversation

TheJolman
Copy link
Collaborator

No description provided.

@TheJolman TheJolman requested a review from Copilot June 22, 2025 02:27
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes missing return statements in functions that fetch or retrieve resources by converting lambda-style calls into functions that properly return values.

  • Adds return statements to fetch_* functions so that they now propagate the result from fetch_res.
  • Adds return statements to retrieve_saved_* functions to return values from retrieve_saved.
Comments suppressed due to low confidence (2)

oss_stats/stats.py:136

  • The change now returns the fetched resource in fetch_commits. Verify that all callers of fetch_commits are updated to handle the new return value.
    return fetch_res(COMMITS_KEY)

oss_stats/stats.py:169

  • Adding a return statement in retrieve_saved_commits changes its API behavior. Please confirm that any usage of retrieve_saved_commits is updated to make use of the returned data.
    return retrieve_saved(COMMITS_KEY)

@TheJolman TheJolman merged commit 8b851ae into main Jun 22, 2025
1 check passed
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