2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

TRIVIAL: code formatting

This commit is contained in:
Régis Hanol 2014-06-26 19:50:16 +02:00
parent 6907739a0b
commit c0cd109e9d
4 changed files with 8 additions and 5 deletions

View file

@ -48,9 +48,7 @@ class UserAvatarsController < ApplicationController
return render_dot unless user = User.find_by(username_lower: username.downcase)
size = params[:size].to_i
if size > 1000 || size < 1
return render_dot
end
return render_dot if size > 1000 || size < 1
image = nil
version = params[:version].to_i