Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nattsw committed Jul 17, 2024
1 parent 3a3e961 commit e6a606d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/discourse_topic_voting/topic_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module TopicExtension

def can_vote?
@can_vote ||=
SiteSetting.topic_voting_enabled && regular? && Category.can_vote?(category_id) && category &&
category.topic_id != id
SiteSetting.topic_voting_enabled && regular? && Category.can_vote?(category_id) &&
category && category.topic_id != id
end

def vote_count
Expand Down

0 comments on commit e6a606d

Please sign in to comment.