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

Fix code irregular issues #12595

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Conversation

lixiaoyuner
Copy link
Contributor

@lixiaoyuner lixiaoyuner commented Nov 3, 2022

Signed-off-by: Yun Li [email protected]

Why I did it

This PR is together with this pre-PR #12188, Qi has some comments after the pre-PR merged, mainly remove the comment code line, didn’t change real functional code in this PR

How I did it

Change the code per Qi's comments

  1. Remove the comment code line
  2. Change the python function parameter default value from () to None

How to verify it

Call the python function without value on the parameter whose default value is None

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@lixiaoyuner lixiaoyuner requested a review from lguohan as a code owner November 3, 2022 06:29
@lgtm-com
Copy link

lgtm-com bot commented Nov 3, 2022

This pull request introduces 1 alert when merging 506b694 into b3a8167 - view on LGTM.com

new alerts:

  • 1 for Testing equality to None

@lixiaoyuner lixiaoyuner merged commit c3a51b2 into sonic-net:master Nov 7, 2022
qiluo-msft pushed a commit that referenced this pull request Nov 18, 2022
* Fix code irregular issues

Signed-off-by: Yun Li <[email protected]>
@mssonicbld
Copy link
Collaborator

@lixiaoyuner PR conflicts with 202205 branch

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 4, 2022
* Fix code irregular issues

Signed-off-by: Yun Li <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #12934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants