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

{Pylint} Fix no-else-continue #18001

Merged
merged 2 commits into from
May 17, 2021
Merged

{Pylint} Fix no-else-continue #18001

merged 2 commits into from
May 17, 2021

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented May 7, 2021

No description provided.

@yonzhan
Copy link
Collaborator

yonzhan commented May 7, 2021

Pylint

@jiasli jiasli mentioned this pull request May 8, 2021
25 tasks
@@ -1493,15 +1493,15 @@ def create_service_principal_for_rbac(
logger.warning(' Retrying role assignment creation: %s/%s', retry_time + 1,
_RETRY_TIMES)
continue
elif _error_caused_by_role_assignment_exists(ex):
if _error_caused_by_role_assignment_exists(ex):
logger.warning(' Role assignment already exists.\n')
break
Copy link
Member

Choose a reason for hiding this comment

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

It is no-else-break.

Copy link
Member Author

@jiasli jiasli May 13, 2021

Choose a reason for hiding this comment

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

Thanks, but I am not sure why it is not detected in #18000.

@jiasli jiasli merged commit bae390c into Azure:dev May 17, 2021
@jiasli jiasli deleted the no-else-continue branch May 17, 2021 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants