refactor(): applied new lint rules

This commit is contained in:
Daniel
2018-03-23 10:42:10 +01:00
parent 28e95ea66e
commit d7829e4012
35 changed files with 1140 additions and 793 deletions
+4 -4
View File
@@ -81,8 +81,8 @@ export class Contact implements IContactProperties {
@InstanceCheck()
clone(): Contact {
let newContact: any = new Contact();
for (let prop in this) {
const newContact: any = new Contact();
for (const prop in this) {
if (prop === 'id') return;
newContact[prop] = this[prop];
}
@@ -342,8 +342,8 @@ export class Contacts extends IonicNativePlugin {
* @hidden
*/
function processContact(contact: any) {
let newContact = new Contact();
for (let prop in contact) {
const newContact = new Contact();
for (const prop in contact) {
if (typeof contact[prop] === 'function') continue;
newContact[prop] = contact[prop];
}