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

fix empty lambda warning #166

Merged
merged 1 commit into from
Aug 1, 2019
Merged

Conversation

jaredh159
Copy link
Contributor

This PR does two things:

  1. It fixes the logic for determining whether to log out the "empty lambda" warning -- there was mistakenly an OR where there should have been an AND.
  2. It bypasses the warning if the statusCode is set to 204, because a 204 response means no content and shouldn't have a body (in fact supplying a body for a 204 can cause bugs).

@swyxio
Copy link
Contributor

swyxio commented Aug 1, 2019

@RaeesBhatti to review i dont have access to this repo

@RaeesBhatti
Copy link
Contributor

I dont have access as well. Will request access!

@swyxio
Copy link
Contributor

swyxio commented Aug 1, 2019

cool. i'm unsubscribing, all the best!

Copy link
Contributor

@RaeesBhatti RaeesBhatti left a comment

Choose a reason for hiding this comment

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

LGTM

@RaeesBhatti RaeesBhatti merged commit 57e5cb5 into netlify:master Aug 1, 2019
@jaredh159 jaredh159 deleted the fix-empty-warning branch August 1, 2019 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants