From 636095bb54ae19e604b426312bb7680e4852b20b Mon Sep 17 00:00:00 2001 From: Bogdan Tara Date: Wed, 2 Dec 2020 21:18:45 +0200 Subject: [PATCH] Bug 1676345 - Fix clang-format issue CLOSED TREE --- uriloader/exthandler/nsExternalHelperAppService.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index ed04282a79c5..16b7be9b364a 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -247,13 +247,12 @@ static bool GetFilenameAndExtensionFromChannel(nsIChannel* aChannel, // We can get an extension if the filename is from a header, or if getting // it from the URL was allowed. bool canGetExtensionFromFilename = - !gotFileNameFromURI || - aAllowURLExtension; + !gotFileNameFromURI || aAllowURLExtension; // ... , or if the mimetype is meaningless and we have nothing to go on: if (!canGetExtensionFromFilename) { nsAutoCString contentType; if (NS_SUCCEEDED(aChannel->GetContentType(contentType))) { - canGetExtensionFromFilename = + canGetExtensionFromFilename = contentType.EqualsIgnoreCase(APPLICATION_OCTET_STREAM) || contentType.EqualsIgnoreCase("binary/octet-stream") || contentType.EqualsIgnoreCase("application/x-msdownload");