-
Notifications
You must be signed in to change notification settings - Fork 53
refactor code #107 #161
base: master
Are you sure you want to change the base?
refactor code #107 #161
Conversation
@thinkingserious Why isn't the build successful? How can I set the environment variables? I haven't found any documentation for this. |
060a549
to
9db0b07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR doesn't make sense and the changes seem superfluous at best. These chained if
statements do not need to be broken up into two nested if
statements each. Python already short-circuits and will not even evaluate the second check if the first one fails in cases like this using and
.
@42B Oh my bad! Any tips to handle this?
…On Sunday, October 28, 2018, 42B ***@***.***> wrote:
***@***.**** commented on this pull request.
This PR doesn't make sense and the changes seem superfluous at best. These
chained if statements do not need to be broken up into two nested if
statements each. Python already short-circuits and will not even evaluate
the second check if the first one fails in cases like this using and.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#161 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgXlPkfrIrUr72ATG1XEfd0drkxMJKOrks5upQXXgaJpZM4X8R29>
.
|
I'm not from sendgrid so I would defer to them as to whether they find this PR useful or not. I'm having trouble seeing how this PR would reduce complexity mentioned in #107 or add any real benefit to the repo but those decisions are not up to me. All you did was break chained if statements into two separate if statements each but you didn't reduce the total number of if statements at all? Maybe you could give a detailed description on exactly how this PR reduces the complexity score from codeclimate? After that, if the previous score was 27 and the maximum should be 5, what is the new complexity score after your changes were made? |
Checklist
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.