mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix all the trailing whitespace
This commit is contained in:
@@ -8,7 +8,7 @@ class InvitesController < ApplicationController
|
||||
|
||||
if invite.present?
|
||||
user = invite.redeem
|
||||
if user.present?
|
||||
if user.present?
|
||||
log_on_user(user)
|
||||
|
||||
# Send a welcome message if required
|
||||
@@ -31,7 +31,7 @@ class InvitesController < ApplicationController
|
||||
def destroy
|
||||
requires_parameter(:email)
|
||||
|
||||
invite = Invite.where(invited_by_id: current_user.id, email: params[:email]).first
|
||||
invite = Invite.where(invited_by_id: current_user.id, email: params[:email]).first
|
||||
raise Discourse::InvalidParameters.new(:email) if invite.blank?
|
||||
invite.destroy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user