Remove now-unnecessary cast

Original commit: elastic/x-pack-elasticsearch@fcbbe5a919
This commit is contained in:
Zachary Tong 2017-04-27 17:16:30 -04:00
parent f341b336a5
commit 6147e2ba6a
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ public class DatafeedConfig extends AbstractDiffable<DatafeedConfig> implements
if (dateHistogram.dateHistogramInterval() != null) {
return validateAndGetCalendarInterval(dateHistogram.dateHistogramInterval().toString());
} else {
return (long) dateHistogram.interval();
return dateHistogram.interval();
}
}