From 90ce65e4dc37686d09717aa826ba634686fb2b5c Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 21 Aug 2024 23:30:00 +0200 Subject: [PATCH] Fix Elvis report: Remove trailing whitespace characters https://github.com/inaka/elvis_core/blob/main/doc_rules/elvis_text_style/no_trailing_whitespace.md --- src/ejabberd_auth_jwt.erl | 6 +++--- src/ejabberd_web.erl | 1 - src/mod_bosh_sql.erl | 2 +- src/mod_push_sql.erl | 2 +- src/mod_vcard_sql.erl | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ejabberd_auth_jwt.erl b/src/ejabberd_auth_jwt.erl index bf3abe221..6f8c16727 100644 --- a/src/ejabberd_auth_jwt.erl +++ b/src/ejabberd_auth_jwt.erl @@ -44,9 +44,9 @@ %%%---------------------------------------------------------------------- start(Host) -> %% We add our default JWT verifier with hook priority 100. - %% So if you need to check or verify your custom JWT before the - %% default verifier, It's better to use this hook with priority - %% little than 100 and return bool() or {stop, bool()} in your own + %% So if you need to check or verify your custom JWT before the + %% default verifier, It's better to use this hook with priority + %% little than 100 and return bool() or {stop, bool()} in your own %% callback function. ejabberd_hooks:add(check_decoded_jwt, Host, ?MODULE, check_decoded_jwt, 100), case ejabberd_option:jwt_key(Host) of diff --git a/src/ejabberd_web.erl b/src/ejabberd_web.erl index d7867d90d..b9dcd7943 100644 --- a/src/ejabberd_web.erl +++ b/src/ejabberd_web.erl @@ -1,7 +1,6 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_web.erl %%% Author : Alexey Shchepin -%%% Purpose : %%% Purpose : %%% Created : 28 Feb 2004 by Alexey Shchepin %%% diff --git a/src/mod_bosh_sql.erl b/src/mod_bosh_sql.erl index 0e54ee56c..643928fe1 100644 --- a/src/mod_bosh_sql.erl +++ b/src/mod_bosh_sql.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : mod_bosh_sql.erl %%% Author : Evgeny Khramtsov -%%% Purpose : +%%% Purpose : %%% Created : 28 Mar 2017 by Evgeny Khramtsov %%% %%% diff --git a/src/mod_push_sql.erl b/src/mod_push_sql.erl index 8e4cc1f1c..0b4d84afd 100644 --- a/src/mod_push_sql.erl +++ b/src/mod_push_sql.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : mod_push_sql.erl %%% Author : Evgeniy Khramtsov -%%% Purpose : +%%% Purpose : %%% Created : 26 Oct 2017 by Evgeny Khramtsov %%% %%% diff --git a/src/mod_vcard_sql.erl b/src/mod_vcard_sql.erl index c67338f51..64e411ab8 100644 --- a/src/mod_vcard_sql.erl +++ b/src/mod_vcard_sql.erl @@ -263,7 +263,7 @@ remove_user(LUser, LServer) -> " where lusername=%(LUser)s and %(LServer)H")) end). -export(_Server) -> +export(_Server) -> [{vcard, fun(Host, #vcard{us = {LUser, LServer}, vcard = VCARD}) when LServer == Host ->