aws-samples / simple-websockets-chat-app

This SAM application provides the Lambda functions, DynamoDB table, and roles to allow you to build a simple chat application based on API Gateway's new WebSocket-based API feature.
MIT No Attribution
682 stars 280 forks source link

Cleanup code and make it consistent across all handlers #29

Closed dsanders11 closed 4 years ago

dsanders11 commented 5 years ago

Issue #, if available:

Description of changes:

The current sample code was a bit inconsistent between the three handlers. This PR cleans them up and makes them consistent:

Should be no functional difference, just cleaning it up to be consistent so it's easier to follow rather than coding style changing from file to file.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.