Simplified setting to/from dates

This commit is contained in:
Stian Thorgersen 2015-03-09 11:44:10 +01:00
parent d2188a3f55
commit 452931bfb8

View file

@ -412,11 +412,10 @@ public class RealmAdminResource {
query.user(user);
}
if (dateFrom != null && dateTo != null) {
query.fromDate(dateFrom).toDate(dateTo);
} else if(dateFrom != null) {
if(dateFrom != null) {
query.fromDate(dateFrom);
} else if(dateTo != null) {
}
if(dateTo != null) {
query.toDate(dateTo);
}