Skip to content

Commit

Permalink
chore: minor refactorings with function namings and variable types
Browse files Browse the repository at this point in the history
  • Loading branch information
AnurosePrakash committed Aug 11, 2023
1 parent e06992f commit 3db34f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/asset-entry-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class AssetEntryBuilder {
* @param formValue form value
* @return asset create dto
*/
buildAssetEntry(formValue: AssetEditorDialogFormValue): AssetCreateRequest {
buildAssetCreateRequest(formValue: AssetEditorDialogFormValue): AssetCreateRequest {
let properties = this.assetPropertyMapper.buildProperties(formValue);
const dataAddressProperties = this.dataAddressMapper.buildDataAddressProperties(
formValue.datasource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export class AssetCreateDialogComponent implements OnDestroy {

onSave() {
const formValue = this.form.value;
const assetEntry = this.assetEntryBuilder.buildAssetEntry(formValue);
const assetEntry =
this.assetEntryBuilder.buildAssetCreateRequest(formValue);

this.form.all.disable();
this.loading = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ export class ContractAgreementTransferDialogComponent implements OnDestroy {
value,
);

let dataSinkProperties =
{
properties:
this.dataAddressMapper.buildDataAddressProperties(value).properties,
} ?? {};
let dataSinkProperties = this.dataAddressMapper.buildDataAddressProperties(value) ?? {};

return {
type: 'PARAMS_ONLY',
Expand Down

0 comments on commit 3db34f3

Please sign in to comment.