From 5ba15ef35074a88daa5032ec4bec34d3a22a607e Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Wed, 13 Dec 2017 11:59:43 +0200 Subject: [PATCH] Remove trailing spaces --- client/app/filters/datetime.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/app/filters/datetime.js b/client/app/filters/datetime.js index 1772fb9e..7c213901 100644 --- a/client/app/filters/datetime.js +++ b/client/app/filters/datetime.js @@ -6,15 +6,15 @@ export default function init(ngModule) { ngModule.filter('dateTime', clientConfig => function dateTime(value) { if (!value) { - return ''; + return ''; } - + const parsed = moment(value); - + if (!parsed.isValid()) { - return '-'; + return '-'; } - + return parsed.format(clientConfig.dateTimeFormat); }); }