Skip to content

Commit

Permalink
Autocorrect Style/RedundantReturn offense
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Aug 26, 2023
1 parent 4be375b commit 9dcd90c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def self.requested_article(params)

if params[:title]
req_params[:permalink] = CGI.escape(params[:title])
article = published.find_by(req_params)
return article if article
published.find_by(req_params)
end
end

Expand Down

0 comments on commit 9dcd90c

Please sign in to comment.