Skip to content

Commit

Permalink
added check in gmail importer for empty option argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego81 committed Jul 11, 2012
1 parent b5c89de commit adbe538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omnicontacts/importer/gmail.rb
Expand Up @@ -15,7 +15,7 @@ def initialize *args
@scope = "https://www.google.com/m8/feeds"
@contacts_host = "www.google.com"
@contacts_path = "/m8/feeds/contacts/default/full"
@max_results = args[3][:max_results] || 100
@max_results = (args[3] && args[3][:max_results]) || 100
end

def fetch_contacts_using_access_token access_token, token_type
Expand Down

0 comments on commit adbe538

Please sign in to comment.