streams: Eliminate last use of get_stream in views.

This commit is contained in:
Tim Abbott
2017-01-29 21:42:09 -08:00
parent 4d3e97f304
commit 884aa2b184
3 changed files with 11 additions and 9 deletions

View File

@@ -419,8 +419,6 @@ def build_custom_checkers(by_lang):
# that you are no longer subscribed to, so need get_stream.
'exclude': set(['zerver/views/messages.py']),
'exclude_line': set([
# This is a check for whether a stream rename is invalid because it already exists
('zerver/views/streams.py', 'if get_stream(new_name, user_profile.realm) is not None:'),
# This is a check for whether a stream rename is invalid because it already exists
('zerver/lib/actions.py', 'existing_deactivated_stream = get_stream(new_name, stream.realm)'),
# This one in check_message is kinda terrible, since it's