Bug 1389851 - netwerk: Fix -Wunreachable-code-return warning in nsGIOProtocolHandler.cpp. r=karlt

netwerk/protocol/gio/nsGIOProtocolHandler.cpp:89:10: warning: 'return' will never be executed [-Wunreachable-code-return]

This `return NS_ERROR_FAILURE` statement at the end of this function is unreachable because all of the preceding switch statement's cases return.

MozReview-Commit-ID: 3qDu2IqTPrW

--HG--
extra : rebase_source : bcd8a07eee82b60fc071787ccb7df7d9f45d0679
This commit is contained in:
Chris Peterson 2017-08-09 00:38:15 -07:00
parent 9ce1ea9579
commit 1447808ce8

View File

@ -85,8 +85,6 @@ MapGIOResult(gint code)
default:
return NS_ERROR_FAILURE;
}
return NS_ERROR_FAILURE;
}
static nsresult