Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Replaced .length > 0 with .!empty? #46

Merged
merged 3 commits into from
Dec 11, 2017

Conversation

nvzard
Copy link

@nvzard nvzard commented Oct 29, 2017

Fixes #32

Checklist

  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the [Contribution Guide] and my PR follows them.
  • I updated my branch with the master branch.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation about the functionality in the appropriate .md file
  • I have added in line documentation to the code I modified

Short description of what this PR does:

If you have questions, please send an email to Sendgrid, or file a Github Issue in this repository.

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Oct 29, 2017
@SendGridDX
Copy link

SendGridDX commented Oct 29, 2017

CLA assistant check
All committers have signed the CLA.

@nvzard
Copy link
Author

nvzard commented Oct 30, 2017

@thinkingserious please review.

@sendgrid sendgrid deleted a comment from SendGridDX Nov 21, 2017
lib/smtpapi.rb Outdated
@@ -116,20 +116,20 @@ def set_ip_pool(pool_name)

def to_array
data = {}
data['to'] = @to if @to.length > 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the Travis build is having some issues with the .emtpy? calls here: https://travis-ci.org/sendgrid/smtpapi-ruby/builds/294550416#L652

Can you please look into this and see what's causing these errors?

@mbernier mbernier merged commit bc98ed3 into sendgrid:master Dec 11, 2017
@thinkingserious
Copy link

Hello @nvzard,

Thanks again for the PR!

We appreciate your contribution and look forward to continued collaboration. Thanks!

Team SendGrid DX

@thinkingserious thinkingserious changed the title Replaced .length > 0 with .!empty? chore: Replaced .length > 0 with .!empty? Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: code review request requesting a community code review or review from Twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace .length > 0 with !empty?
4 participants