From 93507e6e59f501dc791c2d465e26479215b67b37 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 12 Nov 2014 09:44:30 +0000 Subject: [PATCH] 1037 Simplify is_country_column_type? method --- services/importer/lib/importer/content_guesser.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/importer/lib/importer/content_guesser.rb b/services/importer/lib/importer/content_guesser.rb index 5e7f50f65d..f0fa3c30fb 100644 --- a/services/importer/lib/importer/content_guesser.rb +++ b/services/importer/lib/importer/content_guesser.rb @@ -50,11 +50,7 @@ module CartoDB end def is_country_column_type? column - if ['character varying', 'varchar', 'text'].include? column[:data_type] - return true - else - return false - end + ['character varying', 'varchar', 'text'].include? column[:data_type] end def sample