From f5a9d4afef5ff9c059ca1e46c1364458e3a4caca Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 1 Jul 2022 17:54:42 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/EntityRule.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 08acc61e25..7826e4acb5 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -347,10 +347,7 @@ public class EntityRule { } // Body - JSONObject jbody = null; - if (message.encrypt == null || - EntityMessage.ENCRYPT_NONE.equals(message.encrypt)) - jbody = jcondition.optJSONObject("body"); + JSONObject jbody = jcondition.optJSONObject("body"); if (jbody != null) { String value = jbody.getString("value"); boolean regex = jbody.getBoolean("regex");