Skip to content

Ensure beforeSave hook response is object before stripping#1969

Merged
drew-gross merged 1 commit intoparse-community:masterfrom
TylerBrock:extra-safe-response
Jun 1, 2016
Merged

Ensure beforeSave hook response is object before stripping#1969
drew-gross merged 1 commit intoparse-community:masterfrom
TylerBrock:extra-safe-response

Conversation

@TylerBrock
Copy link
Contributor

@TylerBrock TylerBrock commented Jun 1, 2016

Technically if someone returns true/false boolean primitives it'll behave just fine if you call delete on them as the primitive values get converted to objects by the interpreter but this is more explicit.

@codecov-io
Copy link

codecov-io commented Jun 1, 2016

Current coverage is 91.88%

Merging #1969 into master will increase coverage by <.01%

@@             master      #1969   diff @@
==========================================
  Files            91         91          
  Lines          6405       6406     +1   
  Methods        1094       1094          
  Messages          0          0          
  Branches       1344       1345     +1   
==========================================
+ Hits           5885       5886     +1   
  Misses          520        520          
  Partials          0          0          

Powered by Codecov. Last updated by 38f02af...b717eb2

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.

4 participants