Skip to content

Commit 14edf41

Browse files
Divyendu Singhtimsuchanek
authored andcommittedJun 13, 2018
fix: warning generated by sls offline about promise, callback (#366)
1 parent b70c744 commit 14edf41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/lambda.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ export class GraphQLServerLambda {
127127
debug: this.options.debug,
128128
}
129129
})
130-
return handler(event, context, callbackFilter)
130+
handler(event, context, callbackFilter)
131131
}
132132

133133
playgroundHandler = (event, lambdaContext, callback) => {
134-
return lambdaPlayground({
134+
lambdaPlayground({
135135
endpoint: this.options.endpoint,
136136
})(event, lambdaContext, callback)
137137
}
138138

139139
handler = (event, lambdaContext, callback) => {
140140
if (event.httpMethod === 'GET') {
141-
return this.playgroundHandler(event, lambdaContext, callback)
141+
this.playgroundHandler(event, lambdaContext, callback)
142142
} else {
143-
return this.graphqlHandler(event, lambdaContext, callback)
143+
this.graphqlHandler(event, lambdaContext, callback)
144144
}
145145
}
146146
}

0 commit comments

Comments
 (0)
Please sign in to comment.