From 7535677ed44757ecfa160471f250ebe87140cc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 11 Sep 2015 21:04:02 +0200 Subject: [PATCH] fix(build): fixed failing tslint test --- public/app/core/directives/array_join.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/app/core/directives/array_join.ts b/public/app/core/directives/array_join.ts index b91682b48c0..3fa1c209847 100644 --- a/public/app/core/directives/array_join.ts +++ b/public/app/core/directives/array_join.ts @@ -3,8 +3,9 @@ import angular = require('angular'); import _ = require('lodash'); -export function ArrayJoin() -{ +export function ArrayJoin() { + 'use strict'; + return { restrict: 'A', require: 'ngModel', @@ -15,7 +16,7 @@ export function ArrayJoin() } function join_array(text) { - if(_.isArray(text)) { + if (_.isArray(text)) { return (text || '').join(','); } else { return text;