1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Simplification

This commit is contained in:
M66B 2022-07-01 17:54:42 +02:00
parent 66fa181cb5
commit f5a9d4afef

View file

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