mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-08 15:36:12 +00:00
Refactoring
This commit is contained in:
parent
726ea077ff
commit
d337763a77
1 changed files with 4 additions and 4 deletions
|
@ -647,15 +647,15 @@ public class EntityRule {
|
|||
@Override
|
||||
public EvaluationValue evaluate(
|
||||
Expression expression, Token functionToken, EvaluationValue... parameterValues) {
|
||||
List<String> result = new ArrayList<>();
|
||||
|
||||
String name = parameterValues[0].getStringValue();
|
||||
|
||||
List<String> result = new ArrayList<>();
|
||||
if (headers != null)
|
||||
if (name != null && headers != null) {
|
||||
for (Header header : headers)
|
||||
if (name.equalsIgnoreCase(header.getName()))
|
||||
result.add(header.getValue());
|
||||
Log.i("EXPR " + name + "=" + TextUtils.join(", ", result));
|
||||
Log.i("EXPR " + name + "=" + TextUtils.join(", ", result));
|
||||
}
|
||||
|
||||
return new EvaluationValue(result, ExpressionConfiguration.defaultConfiguration());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue