Skip to content

Commit

Permalink
Code climate [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
milaaraujo committed Jul 25, 2018
1 parent 50cbcf8 commit ac462fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/search_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def getRecentProfiles(srchString)
nodes = Node.all.order("changed DESC").limit(100).distinct
users = []
nodes.each do |node|
next unless (node.author.status != 0) and (node.author.name.downcase.include? srchString.downcase)
next unless (node.author.status != 0) && (node.author.name.downcase.include? srchString.downcase)
users << node.author.user
end

Expand All @@ -219,8 +219,8 @@ def getRecentProfilesTag(tagName = nil)
if node.author.status != 0
if tagName.blank?
users << node.author.user
else
users << node.author.user if node.author.user.has_tag(tagName)
elsif node.author.user.has_tag(tagName)
users << node.author.user
end
end
end
Expand Down

0 comments on commit ac462fc

Please sign in to comment.