Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/eslint-3.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonBazhal committed Jan 24, 2017
2 parents 779720c + 22e95e4 commit 883b8c6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const lambdaHandler = require('lambda-handler-as-promised');

const handler = lambdaHandler(function(event) {
const result = doSomething(event);
if (result) ? return result : throw new Error('Winter is coming!');

if (/*something wrong*/) {
throw new Error('Winter is coming!');
}

return result;
});
```

Expand Down Expand Up @@ -214,7 +219,7 @@ const handler = lambdaHandler(function(event, context) {

The MIT License (MIT)

Copyright (c) 2016 Anton Bazhal
Copyright (c) 2016-2017 Anton Bazhal

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down

0 comments on commit 883b8c6

Please sign in to comment.