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