FACG6 / emotion-detector

Our Website
https://emotionandfacerecognizer.herokuapp.com/
0 stars 0 forks source link

Useless Arguments in the request function #32

Open IsraaSulaiman opened 5 years ago

IsraaSulaiman commented 5 years ago

In the handler module:

request.post(options, (error, httpRes, body) => { if (error) handleServerError(req, res); else res.end(body) })

You did not use the httpRes argument in your function, so delete it!

aminalakhsham commented 5 years ago

we can't because request module take 3 argument and i need the third argument ... so to reach it should Passes httpRes i think i can delete body and use httpRes.body

IsraaSulaiman commented 5 years ago

:+1: Exactly!