diff options
Diffstat (limited to 'lib/gitlab/github_import/importer/releases_importer.rb')
-rw-r--r-- | lib/gitlab/github_import/importer/releases_importer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/github_import/importer/releases_importer.rb b/lib/gitlab/github_import/importer/releases_importer.rb index fe3a8d4aea5..1881f715c99 100644 --- a/lib/gitlab/github_import/importer/releases_importer.rb +++ b/lib/gitlab/github_import/importer/releases_importer.rb @@ -47,11 +47,7 @@ module Gitlab end def description_for(release) - if release.body.present? - release.body - else - "Release for tag #{release.tag_name}" - end + release.body.presence || "Release for tag #{release.tag_name}" end end end |