yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36080
[Bug 1478512] Re: If/return logic in attributes.py is inconsistent
** Changed in: neutron
Status: Fix Committed => Fix Released
** Changed in: neutron
Milestone: None => liberty-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1478512
Title:
If/return logic in attributes.py is inconsistent
Status in neutron:
Fix Released
Bug description:
In neutron/api/v2/attributes.py some methods use:
if data is None:
return
return something
Others use:
if data is not None:
return something
Both have the same effect, but are inconsistent. The usage should be
standardised around the shorter version.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1478512/+subscriptions
References