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(command_mapper): make functions const #542

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

aloisklink
Copy link
Contributor

Make the put_command_mapper() and check_command_mapper() use a const string as an input parameter.

I've also made the hmap param to check_command_mapper() partially const, since we never modify it.

Make the `put_command_mapper()` and `check_command_mapper()` use a
`const` string as an input parameter.

I've also made the `hmap` param to `check_command_mapper()` partially
`const`, since we never modify it.
@aloisklink aloisklink added the refactor Refactoring code label Mar 27, 2023
@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #542 (da5dd39) into main (f1826ab) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #542      +/-   ##
==========================================
- Coverage   54.17%   54.16%   -0.01%     
==========================================
  Files         144      144              
  Lines       21034    21036       +2     
==========================================
- Hits        11395    11394       -1     
- Misses       9639     9642       +3     
Impacted Files Coverage Δ
src/dns/command_mapper.c 76.19% <100.00%> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@aloisklink aloisklink added this pull request to the merge queue Mar 27, 2023
Merged via the queue into main with commit 026a97b Mar 27, 2023
@aloisklink aloisklink deleted the refactor/make-command_mapper-const branch March 27, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants