From 1a4b575bad39d6ba97ef13661853aea745ec830c Mon Sep 17 00:00:00 2001 From: lanrekkeeg Date: Mon, 27 Feb 2023 22:23:48 +0100 Subject: [PATCH] basic formatting --- .../wineryLicenseModule/wineryLicense.component.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/org.eclipse.winery.frontends/app/tosca-management/src/app/wineryLicenseModule/wineryLicense.component.ts b/org.eclipse.winery.frontends/app/tosca-management/src/app/wineryLicenseModule/wineryLicense.component.ts index 1396f36d4a..b77b7eb061 100644 --- a/org.eclipse.winery.frontends/app/tosca-management/src/app/wineryLicenseModule/wineryLicense.component.ts +++ b/org.eclipse.winery.frontends/app/tosca-management/src/app/wineryLicenseModule/wineryLicense.component.ts @@ -385,7 +385,6 @@ export class WineryLicenseComponent implements OnInit { } checkLicenseData() { - if (this.leService.isFinished()) { const toscaElements = this.sharedData.path.split('/'); const toscaElementID = toscaElements[toscaElements.length - 1]; @@ -396,16 +395,16 @@ export class WineryLicenseComponent implements OnInit { if (data.hasOwnProperty('UNKNOWN LICENSE')) { this.unknowLicense = data['UNKNOWN LICENSE']; delete data['UNKNOWN LICENSE']; - } else { this.unknowLicense = [];} + } else { this.unknowLicense = []; } if (data.hasOwnProperty('NULL LICENSE')) { + this.nullLicense = data['NULL LICENSE']; delete data['NULL LICENSE']; - } - else { + } else { this.nullLicense = []; } for (const entry in data) { - if (data.hasOwnProperty(entry)){ + if (data.hasOwnProperty(entry)) { const tempList = []; for (const index in data[entry]) { @@ -430,15 +429,14 @@ export class WineryLicenseComponent implements OnInit { this.firstFormGroup.enable(); this.stepper.selected.completed = true; this.stepper.next(); - } - else { + } else { this.failed(); } } deleteFromBackend() { const filenames = []; - for (const key in this.treeData){ + for (const key in this.treeData) { if (this.treeData.hasOwnProperty(key)) { for (const val in this.treeData[key]) { if (this.treeData[key][val]) {