diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-25 01:32:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-25 01:32:23 +0000 |
commit | 32d2b1c42f76c07e13bcf748b2071a29cf350606 (patch) | |
tree | a178f5208bdb7f5e9a43dca6cdbc5ac144b59459 /app/views/common | |
parent | f27de353381a45427b6e38b87c973902de92484f (diff) | |
download | redmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.tar.gz redmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.zip |
Fix RuboCop offense Style/InverseMethods: Use `present?` instead of inverting `blank?` (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/feed.atom.builder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/common/feed.atom.builder b/app/views/common/feed.atom.builder index 13fda6b1b..e62b535d1 100644 --- a/app/views/common/feed.atom.builder +++ b/app/views/common/feed.atom.builder @@ -24,7 +24,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do author = item.event_author if item.respond_to?(:event_author) xml.author do xml.name(author) - xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail + xml.email(author.mail) if author.is_a?(User) && author.mail.present? && !author.pref.hide_mail end if author xml.content "type" => "html" do xml.text! textilizable(item, :event_description, :only_path => false) |