Remove unused import

This commit is contained in:
Jesús Ángel 2019-02-04 10:39:58 +01:00
parent abbc11bad7
commit 57db408c41
2 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,6 @@ import './services';
import './controllers';
import './factories';
import './directives';
import { runInContext } from 'vm';
// Added due to Kibana 6.3.0. Do not modify.
uiModules.get('kibana').provider('dashboardConfig', () => {

View File

@ -11,7 +11,6 @@
*/
import js2xmlparser from 'js2xmlparser';
import XMLBeautifier from './xml-beautifier';
import beautifier from './json-beautifier';
import { queryConfig } from '../services/query-config';
import { objectWithoutProperties } from './remove-hash-key.js';
@ -218,13 +217,14 @@ export class ConfigurationHandler {
if (!$scope.$$phase) $scope.$digest();
}
json2xml(data,$scope) {
json2xml(data) {
if(data){
const result = XMLBeautifier(
js2xmlparser.parse('configuration', data)
);
return result;
}
return false;
}
/**