If/return logic in attributes.py is inconsistent
Bug #1478512 reported by
John Davidge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
John Davidge |
Bug Description
In neutron/
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.
Changed in neutron: | |
assignee: | nobody → John Davidge (john-davidge) |
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-2 → 7.0.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/206000
Review: https:/