Skip to content

Conversation

@kevin85421
Copy link
Contributor

@kevin85421 kevin85421 commented Dec 26, 2023

Proposed changes

Problem: The function createMaps only passes all arguments to buildAddHeaderMaps. Hence, createMaps is redundant.

Solution: Remove the function createMaps, and call the function buildAddHeaderMaps directly.

Testing: Screen Shot 2023-12-25 at 10 33 02 PM

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

The function `createMaps` only passes all arguments to
`buildAddHeaderMaps`. Hence, `createMaps` is redundant.
@kevin85421 kevin85421 marked this pull request as ready for review December 26, 2023 06:31
@kevin85421 kevin85421 requested a review from a team as a code owner December 26, 2023 06:31
@sjberman sjberman added the chore Pull requests for routine tasks label Dec 27, 2023
Copy link
Contributor

@kate-osborn kate-osborn left a comment

Choose a reason for hiding this comment

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

LGTM!

@kevin85421 can you rewrite your PR to follow the Problem/Solution format in the template? Thanks!

@kevin85421
Copy link
Contributor Author

@kate-osborn Updated. Thanks!

@github-actions github-actions bot removed the chore Pull requests for routine tasks label Jan 3, 2024
@pleshakov pleshakov merged commit f5b5e9e into nginx:main Jan 3, 2024
@lucacome lucacome added the chore Pull requests for routine tasks label Mar 13, 2024
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
…1427)

The function `createMaps` only passes all arguments to
`buildAddHeaderMaps`. Hence, `createMaps` is redundant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants