File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ function makeExpressHandler(appId, promiseHandler) {
160
160
161
161
if ( result . text ) {
162
162
res . send ( result . text ) ;
163
- return next ( ) ;
163
+ return ;
164
164
}
165
165
166
166
if ( result . location ) {
@@ -169,7 +169,7 @@ function makeExpressHandler(appId, promiseHandler) {
169
169
// as it double encodes %encoded chars in URL
170
170
if ( ! result . response ) {
171
171
res . send ( 'Found. Redirecting to ' + result . location ) ;
172
- return next ( ) ;
172
+ return ;
173
173
}
174
174
}
175
175
if ( result . headers ) {
@@ -178,7 +178,6 @@ function makeExpressHandler(appId, promiseHandler) {
178
178
} )
179
179
}
180
180
res . json ( result . response ) ;
181
- next ( ) ;
182
181
} , ( e ) => {
183
182
log . error ( `Error generating response. ${ inspect ( e ) } ` , { error : e } ) ;
184
183
next ( e ) ;
You can’t perform that action at this time.
0 commit comments