mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 06:54:06 -04:00
Remove unneccessary return
This commit is contained in:
parent
4d8584f427
commit
19959c6092
1 changed files with 2 additions and 2 deletions
|
@ -189,11 +189,11 @@ class Post < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_nofollow?
|
def add_nofollow?
|
||||||
return user.blank? || SiteSetting.tl3_links_no_follow? || !user.has_trust_level?(TrustLevel[3])
|
user.blank? || SiteSetting.tl3_links_no_follow? || !user.has_trust_level?(TrustLevel[3])
|
||||||
end
|
end
|
||||||
|
|
||||||
def omit_nofollow?
|
def omit_nofollow?
|
||||||
return !add_nofollow?
|
!add_nofollow?
|
||||||
end
|
end
|
||||||
|
|
||||||
def cook(*args)
|
def cook(*args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue