mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Make GetChannel nicer in HTML5 parser
This commit is contained in:
parent
ad44605576
commit
c27c098156
@ -273,11 +273,8 @@ nsHtml5Parser::SetParserFilter(nsIParserFilter* aFilter)
|
||||
NS_IMETHODIMP
|
||||
nsHtml5Parser::GetChannel(nsIChannel** aChannel)
|
||||
{
|
||||
nsresult result = NS_ERROR_NOT_AVAILABLE;
|
||||
if (mRequest) {
|
||||
result = CallQueryInterface(mRequest, aChannel);
|
||||
}
|
||||
return result;
|
||||
return mRequest ? CallQueryInterface(mRequest, aChannel) :
|
||||
NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user