From fad1a1a6e8b0d499dd820c34e06ef3381a9c5f3e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 27 Oct 2022 16:55:25 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/UriHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/UriHelper.java b/app/src/main/java/eu/faircode/email/UriHelper.java index c3d8c4944f..266a0d5f12 100644 --- a/app/src/main/java/eu/faircode/email/UriHelper.java +++ b/app/src/main/java/eu/faircode/email/UriHelper.java @@ -330,7 +330,7 @@ public class UriHelper { Uri result = (s > 0 ? Uri.parse(path.substring(s + 1)) : null); changed = (result != null); url = (result == null ? uri : result); - } else if (uri.getHost() != null && uri.getHost().equals("go.dhlparcel.nl")) { + } else if ("go.dhlparcel.nl".equals(uri.getHost())) { try { String path = uri.getPath(); int s = path.lastIndexOf('/');