prettier: ran on all files again, sorry. now settings are defined in package.json

This commit is contained in:
Torkel Ödegaard
2017-12-21 08:39:31 +01:00
parent af34f9977e
commit 3a1f52d8a2
262 changed files with 3996 additions and 7431 deletions

View File

@@ -49,11 +49,7 @@ export class LinkSrv {
}
appendToQueryString(url, stringToAppend) {
if (
!_.isUndefined(stringToAppend) &&
stringToAppend !== null &&
stringToAppend !== ''
) {
if (!_.isUndefined(stringToAppend) && stringToAppend !== null && stringToAppend !== '') {
var pos = url.indexOf('?');
if (pos !== -1) {
if (url.length - pos > 1) {
@@ -106,10 +102,7 @@ export class LinkSrv {
info.href = this.addParamsToUrl(info.href, params);
if (link.params) {
info.href = this.appendToQueryString(
info.href,
this.templateSrv.replace(link.params, scopedVars)
);
info.href = this.appendToQueryString(info.href, this.templateSrv.replace(link.params, scopedVars));
}
return info;