Skip to content

Commit a867179

Browse files
committed
Return None explicitly rather than implicitly
- Legacy-Id: 4886
1 parent d478786 commit a867179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def log_state_changed(request, doc, by, new_description, old_description):
204204
def add_state_change_event(doc, by, prev_state, new_state, timestamp=None):
205205
"""Add doc event to explain that state change just happened."""
206206
if prev_state == new_state:
207-
return
207+
return None
208208

209209
e = StateDocEvent(doc=doc, by=by)
210210
e.type = "changed_state"

0 commit comments

Comments
 (0)