Bug 1676345 - Fix clang-format issue CLOSED TREE

This commit is contained in:
Bogdan Tara 2020-12-02 21:18:45 +02:00
Родитель 225a24f0bc
Коммит 636095bb54
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -247,13 +247,12 @@ static bool GetFilenameAndExtensionFromChannel(nsIChannel* aChannel,
// We can get an extension if the filename is from a header, or if getting // We can get an extension if the filename is from a header, or if getting
// it from the URL was allowed. // it from the URL was allowed.
bool canGetExtensionFromFilename = bool canGetExtensionFromFilename =
!gotFileNameFromURI || !gotFileNameFromURI || aAllowURLExtension;
aAllowURLExtension;
// ... , or if the mimetype is meaningless and we have nothing to go on: // ... , or if the mimetype is meaningless and we have nothing to go on:
if (!canGetExtensionFromFilename) { if (!canGetExtensionFromFilename) {
nsAutoCString contentType; nsAutoCString contentType;
if (NS_SUCCEEDED(aChannel->GetContentType(contentType))) { if (NS_SUCCEEDED(aChannel->GetContentType(contentType))) {
canGetExtensionFromFilename = canGetExtensionFromFilename =
contentType.EqualsIgnoreCase(APPLICATION_OCTET_STREAM) || contentType.EqualsIgnoreCase(APPLICATION_OCTET_STREAM) ||
contentType.EqualsIgnoreCase("binary/octet-stream") || contentType.EqualsIgnoreCase("binary/octet-stream") ||
contentType.EqualsIgnoreCase("application/x-msdownload"); contentType.EqualsIgnoreCase("application/x-msdownload");