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

Stop execution on assigned AddQueryParameters value #182

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rkodev
Copy link
Contributor

@rkodev rkodev commented Aug 29, 2024

Stop execution on assigned AddQueryParameters value

@rkodev rkodev requested a review from a team as a code owner August 29, 2024 13:14
Copy link

sonarcloud bot commented Aug 29, 2024

@@ -498,14 +498,17 @@ func (request *RequestInformation) AddQueryParameters(source any) {
str, ok := value.(*string)
if ok && str != nil {
request.QueryParameters[fieldName] = *str
continue
Copy link
Member

Choose a reason for hiding this comment

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

this will introduce a regression skipping normalization below.

updating to

		if str, ok := value.(*string); ok && str != nil {

and else if
and removing the continues
should achieve the desired performance improvement

Copy link
Contributor

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress 🚧
Development

Successfully merging this pull request may close these issues.

2 participants