From 8303c17229e873939b1a8582408ca14cf69e9b8a Mon Sep 17 00:00:00 2001 From: Darwin Huang Date: Wed, 8 Sep 2021 00:33:08 +0000 Subject: [PATCH] Refactor: Remove unused branch. `filename` must be `null` at this point, as it's recently been set to that value, and hasn't adopted any other value yet. Refactoring change only. No functional changes intended. Change-Id: I29a28872efc8c12c0da3c9f7c0a92d6aff465410 --- core/java/android/webkit/URLUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/URLUtil.java b/core/java/android/webkit/URLUtil.java index 844b156b84d38..c7609a6c18af6 100644 --- a/core/java/android/webkit/URLUtil.java +++ b/core/java/android/webkit/URLUtil.java @@ -310,7 +310,7 @@ public final class URLUtil { String extension = null; // If we couldn't do anything with the hint, move toward the content disposition - if (filename == null && contentDisposition != null) { + if (contentDisposition != null) { filename = parseContentDisposition(contentDisposition); if (filename != null) { int index = filename.lastIndexOf('/') + 1;