Skip to content

Commit 38a03c1

Browse files
committed
Use if instead of unless
1 parent 2748ef5 commit 38a03c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/discourse_translator/guardian_extension.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def can_detect_language?(post)
2020
end
2121

2222
def can_translate?(post)
23-
return false unless user_group_allow_translate?
23+
return false if !user_group_allow_translate?
2424

2525
if SiteSetting.experimental_topic_translation
2626
return false if post.translation_for(I18n.locale).present?

0 commit comments

Comments
 (0)