Skip to content

Commit 9124aab

Browse files
committed
change block return to next
1 parent 2440999 commit 9124aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module ::CommunityCustomFields
3838
end
3939

4040
on(:topic_created) do |topic, _opts, user|
41-
return unless topic.archetype == "regular" && user.id > 0
41+
next unless topic.archetype == "regular" && user.id > 0
4242

4343
topic.custom_fields[:assignee_id] = 0
4444
topic.custom_fields[:status] = "new"
@@ -47,7 +47,7 @@ module ::CommunityCustomFields
4747
end
4848

4949
on(:post_created) do |post, _opts, user|
50-
return unless post.archetype == "regular" && user.id > 0
50+
next unless post.archetype == "regular" && user.id > 0
5151

5252
topic = post.topic
5353

0 commit comments

Comments
 (0)