numo-labs / aws-lambda-helper

:lollipop: Collection of helper methods for lambda
GNU General Public License v3.0
22 stars 2 forks source link

Allow `pushResultToClient` to send events with no items #72

Closed lennym closed 8 years ago

lennym commented 8 years ago

There are occasions when we need to be able to send messages from providers back to the UI that do not have search results attached. For example "search complete" events. As such we need to stop the function from throwing an error if no items are sent.

Instead allow the SNS event to continue to be emitted, even if there are no items provided.

codecov-io commented 8 years ago

Current coverage is 96.87% (diff: 100%)

Merging #72 into master will decrease coverage by 0.01%

@@             master        #72   diff @@
==========================================
  Files             2          2          
  Lines           193        192     -1   
  Methods          26         26          
  Messages          0          0          
  Branches         44         44          
==========================================
- Hits            187        186     -1   
  Misses            6          6          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 0bb0da8...1f75ebd

nelsonic commented 8 years ago

👍

nelsonic commented 8 years ago

aws-lambda-helper@2.23.0