Merge "Refactor: Remove unused branch."

This commit is contained in:
Treehugger Robot
2021-09-09 00:20:59 +00:00
committed by Gerrit Code Review

View File

@@ -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;