Skip to content

Commit

Permalink
Add: no cov for trivial block
Browse files Browse the repository at this point in the history
  • Loading branch information
krukow committed Aug 23, 2023
1 parent 63f1588 commit f3956a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/entitlements/backend/github_team/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def validate_team_id_and_slug!(team_id, team_slug)
def add_user_to_team(user:, team:, role: "member")
return false unless org_members.include?(user.downcase)
unless role == "member" || role == "maintainer"
# :nocov:
raise "add_user_to_team role mismatch: team_id=#{team.team_id} user=#{user} expected role=maintainer/member got=#{role}"
end
Entitlements.logger.debug "#{identifier} add_user_to_team(user=#{user}, org=#{org}, team_id=#{team.team_id}, role=#{role})"
Expand Down

0 comments on commit f3956a3

Please sign in to comment.