Skip to content

Commit

Permalink
Removes stringArgs from DateTimeFormatFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
gabru-md committed Jan 16, 2020
1 parent 7abb0cc commit 7fd6830
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ public String getName() {
public Object filter(Object var, JinjavaInterpreter interpreter,
Object... args) {

List<String> stringArgs = new ArrayList<>();
for (Object arg: args) {
stringArgs.add(Objects.toString(arg));
}
String[] filterArgs = new String[stringArgs.size()];
String[] filterArgs = new String[args.length];
for (int i = 0; i < filterArgs.length; i++) {
filterArgs[i] = stringArgs.get(i);
filterArgs[i] = Objects.toString(args[i]);
}

if (args.length > 0) {
Expand Down

0 comments on commit 7fd6830

Please sign in to comment.