Browse Source

fix(build): fixed failing tslint test

Torkel Ödegaard 10 years ago
parent
commit
7535677ed4
1 changed files with 4 additions and 3 deletions
  1. 4 3
      public/app/core/directives/array_join.ts

+ 4 - 3
public/app/core/directives/array_join.ts

@@ -3,8 +3,9 @@
 import angular = require('angular');
 import angular = require('angular');
 import _ = require('lodash');
 import _ = require('lodash');
 
 
-export function ArrayJoin()
-{
+export function ArrayJoin() {
+  'use strict';
+
   return {
   return {
     restrict: 'A',
     restrict: 'A',
     require: 'ngModel',
     require: 'ngModel',
@@ -15,7 +16,7 @@ export function ArrayJoin()
       }
       }
 
 
       function join_array(text) {
       function join_array(text) {
-        if(_.isArray(text)) {
+        if (_.isArray(text)) {
           return (text || '').join(',');
           return (text || '').join(',');
         } else {
         } else {
           return text;
           return text;