DEV: user suspension use .present? (#12676)

As suggested by eviltrout in

https://github.com/discourse/discourse/pull/12666
This commit is contained in:
Ryan Mulligan 2021-04-12 09:53:40 -07:00 committed by GitHub
parent 2081b6e5c9
commit d837ad8386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class Admin::UsersController < Admin::AdminController
end end
@user.logged_out @user.logged_out
if message && !message.empty? if message.present?
Jobs.enqueue( Jobs.enqueue(
:critical_user_email, :critical_user_email,
type: :account_suspended, type: :account_suspended,