about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-08 01:08:39 -0500
committerGitHub <noreply@github.com>2023-02-08 07:08:39 +0100
commit26ac2447b4efc4689295188c5d1cd3d444f28b15 (patch)
treee8387010bdd3d9ff2a8701ee60ca0d29c067c29e /app/serializers
parentf68bb52556fe90d7adad8db9ba8b801a22281f30 (diff)
Apply Rubocop Style/EmptyElse (#23449)
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/instance_serializer.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb
index fbb2fea0d..e280f8eb6 100644
--- a/app/serializers/rest/instance_serializer.rb
+++ b/app/serializers/rest/instance_serializer.rb
@@ -97,8 +97,6 @@ class REST::InstanceSerializer < ActiveModel::Serializer
   def registrations_message
     if Setting.closed_registrations_message.present?
       markdown.render(Setting.closed_registrations_message)
-    else
-      nil
     end
   end