From ffbaf374c85cf9b8d6d5fc14f021334821190e42 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Wed, 11 Jan 2017 12:55:25 -0800 Subject: [PATCH] use .presence rather than DIY checking --- script/import_scripts/bbpress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/bbpress.rb b/script/import_scripts/bbpress.rb index 738535fa1a7..27c3be1deab 100644 --- a/script/import_scripts/bbpress.rb +++ b/script/import_scripts/bbpress.rb @@ -84,7 +84,7 @@ class ImportScripts::Bbpress < ImportScripts::Base id: u["id"].to_i, username: u["user_nicename"], email: u["user_email"].downcase, - name: u["display_name"].length > 0 ? u["display_name"] : u['user_nicename'], + name: u["display_name"].presence || u['user_nicename'], created_at: u["user_registered"], website: u["user_url"], bio_raw: users_description[u["id"]],