Skip to content

Avoid closures in CheckIfCacheMissOnReferencedProjectIsAllowedAndErro… #11990

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Erarndt
Copy link
Contributor

@Erarndt Erarndt commented Jun 10, 2025

…rIfNot

Fixes #

Context

Changes Made

Testing

Notes

@Copilot Copilot AI review requested due to automatic review settings June 10, 2025 18:08
Copy link
Contributor

@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 refactors the method CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot by removing closures and converting lambdas into static methods to avoid capturing instance state. Additionally, it updates helper methods (e.g., GetConfigurations, SkipNonexistentTargetsIfExistentTargetsHaveResults, and GetLoggingServiceAction) to use explicit parameters instead of relying on instance fields.

  • Replaced closure-based lambdas with static lambdas.
  • Modified helper methods to accept config and results caches as arguments.
  • Refactored the flow for retrieving the parent request within GetConfigurations.

@SimaTian SimaTian enabled auto-merge (squash) June 19, 2025 11:28
@rainersigwald rainersigwald disabled auto-merge June 19, 2025 15:59
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.

3 participants