update fairing.rs removed duplicate condition (#27)

the method == option check was present twice for apparently no reason (typo?)
This commit is contained in:
Allan Simon 2017-10-31 04:00:14 +01:00 committed by Yong Wen Chua
parent 5c0bb10b2d
commit cc871967df
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ fn on_response_wrapper(
//
// TODO: Is there anyway we can make this smarter? Only modify status codes for
// requests where an actual route exist?
if request.method() == http::Method::Options && request.method() == http::Method::Options &&
if request.method() == http::Method::Options &&
request.route().is_none()
{
info_!(