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

feat: avoid duplicate code in default_role_manager #295

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

greenhandatsjtu
Copy link
Contributor

@greenhandatsjtu greenhandatsjtu commented Jun 17, 2022

There are many duplicate code in default_role_manager.rs , making it hard to understand and maintain code, I improved it by removing duplicate code.

@casbin-bot
Copy link
Member

@smrpn @hackerchai @PsiACE @GopherJ please review

@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #295 (ab835e0) into master (5cf0ed5) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
- Coverage   81.51%   81.46%   -0.06%     
==========================================
  Files          23       23              
  Lines        3479     3463      -16     
==========================================
- Hits         2836     2821      -15     
+ Misses        643      642       -1     
Impacted Files Coverage Δ
src/rbac/default_role_manager.rs 97.42% <100.00%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5cf0ed5...ab835e0. Read the comment docs.

Copy link
Contributor

@PsiACE PsiACE left a comment

Choose a reason for hiding this comment

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

lgtm, however, please update the branch to the latest, we need to get the CI up and running.

@greenhandatsjtu
Copy link
Contributor Author

lgtm, however, please update the branch to the latest, we need to get the CI up and running.

Done, thanks.

@PsiACE PsiACE merged commit 663e764 into casbin:master Jun 17, 2022
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