Skip to content

Commit

Permalink
Merge pull request #5301 from eduardoj/remove_useless_or
Browse files Browse the repository at this point in the history
Remove unreachable code
  • Loading branch information
bgeuken committed Jul 5, 2018
2 parents b68ae75 + ab947e7 commit fa4caf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def save_dialog
end

def icon
size = params[:size].to_i || '20'
size = params[:size].to_i
user = User.find_by_login(params[:user])
if user.nil? || (content = user.gravatar_image(size)) == :none
redirect_to ActionController::Base.helpers.asset_path('default_face.png')
Expand Down

0 comments on commit fa4caf6

Please sign in to comment.