Skip to content

Commit 0abb893

Browse files
committed
should not have async on promise
1 parent 6d20b19 commit 0abb893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lambda/promise-chuck-norris.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/
33

44
import fetch from 'node-fetch';
5-
export async function handler(event, context) {
5+
export function handler(event, context) {
66
return new Promise((resolve, reject) => {
77
fetch('https://api.chucknorris.io/jokes/random')
88
.then(response => {

0 commit comments

Comments
 (0)