mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(build): fixed failing tslint test
This commit is contained in:
parent
812e4c7cd4
commit
7535677ed4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user