FIX: Don't change return value to blank string.

This commit is contained in:
Guo Xiang Tan 2016-11-09 11:13:34 +08:00
parent 263a43bcfd
commit 857986e2c0
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class ComposerMessagesFinder
# Determines whether to show the user education text
def check_education_message
return '' if @topic && @topic.archetype == Archetype.private_message
return if @topic && @topic.archetype == Archetype.private_message
if creating_topic?
count = @user.created_topic_count
@ -37,7 +37,7 @@ class ComposerMessagesFinder
}
end
''
nil
end
# New users have a limited number of replies in a topic