linting fixes

This commit is contained in:
Dolan
2017-03-08 21:49:41 +00:00
parent 279a5a93f1
commit 946a222d37
16 changed files with 67 additions and 66 deletions

View File

@ -1,5 +1,5 @@
import {BaseXmlComponent} from "./base";
import * as _ from "lodash";
import { BaseXmlComponent } from "./base";
export abstract class XmlAttributeComponent extends BaseXmlComponent {
protected root: Object;
@ -16,10 +16,10 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
}
}
replaceKey(): void {
public replaceKey(): void {
if (this.root !== undefined) {
_.forOwn(this.root, (value, key) => {
let newKey = this.xmlKeys[key];
const newKey = this.xmlKeys[key];
this.root[newKey] = value;
delete this.root[key];
});
@ -27,4 +27,4 @@ export abstract class XmlAttributeComponent extends BaseXmlComponent {
delete this.root;
}
}
}
}