From 857986e2c04919ae0bda98b7929a8afbd298ac28 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 9 Nov 2016 11:13:34 +0800 Subject: [PATCH] FIX: Don't change return value to blank string. --- lib/composer_messages_finder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/composer_messages_finder.rb b/lib/composer_messages_finder.rb index 551222b1319..347ca208e80 100644 --- a/lib/composer_messages_finder.rb +++ b/lib/composer_messages_finder.rb @@ -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