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

Refactor onReceiveSessionTaskChallenge and onReceiveSessionTaskChallenge #736

Merged
merged 2 commits into from
Oct 29, 2023

Conversation

timbms
Copy link
Contributor

@timbms timbms commented Oct 21, 2023

Migrate onReceiveSessionTaskChallenge and onReceiveSessionTaskChallenge from closure to function (in the past this allowed reuse code for challenge responses between Kingfisher and Alamofire libraries), simplified their signature as the first two parameters were ignored, avoids useless initializers for URLSession and URLSessionDataTask

This started as a fix for the build warning for URLSessionDataTask and revealed a refactoring opportunity.

…ge from closure to function (in the past this allowed reuse code for challenge responses between Kingfisher and Alamofire libraries), simplified their signature as the first two parameters were ignored, avoids useless initializers for URLSession and URLSessionDataTask
Copy link
Contributor

@digitaldan digitaldan left a comment

Choose a reason for hiding this comment

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

LGTM

@timbms timbms merged commit 95bf809 into develop Oct 29, 2023
2 checks passed
@timbms timbms deleted the SessionTalkFix branch October 29, 2023 15:55
timbms added a commit that referenced this pull request Nov 7, 2023
…ge from closure to function (in the past this allowed reuse code for challenge responses between Kingfisher and Alamofire libraries), simplified their signature as the first two parameters were ignored, avoids useless initializers for URLSession and URLSessionDataTask (#736)

Signed-off-by: Dan Cunningham <[email protected]>
Co-authored-by: Dan Cunningham <[email protected]>
Signed-off-by: Tim Bert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants