diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index d8eb24862f10..d903df836e7a 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -425,11 +425,7 @@ function dateFilter($locale) { format = format || 'mediumDate'; format = $locale.DATETIME_FORMATS[format] || format; if (isString(date)) { - if (NUMBER_STRING.test(date)) { - date = int(date); - } else { - date = jsonStringToDate(date); - } + date = NUMBER_STRING.test(date) ? int(date) : jsonStringToDate(date); } if (isNumber(date)) {