From 6bf84eddd5788a536e7b2e454896ad6e796a46a8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 29 Mar 2021 11:48:03 -0400 Subject: [PATCH] currencies: fix lint Signed-off-by: Galen Charlton --- .../app/staff/admin/acq/currency/currencies.component.ts | 2 +- .../admin/acq/currency/exchange-rates-dialog.component.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/currencies.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/currencies.component.ts index 72d3e4e67c..6baba65d89 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/currencies.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/currencies.component.ts @@ -115,7 +115,7 @@ export class CurrenciesComponent extends AdminPageComponent implements OnInit { deleteIfPossible(rows: IdlObject[]) { if (rows.length > 0) { const code = rows[0].code(); - let can: boolean = true; + let can = true; forkJoin([ this.pcrud.search('acqexr', { from_currency: code }, { limit: 1 }, { atomic: true }), this.pcrud.search('acqexr', { to_currency: code }, { limit: 1 }, { atomic: true }), diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/exchange-rates-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/exchange-rates-dialog.component.ts index 2b5c77c1a7..4490c0bba7 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/exchange-rates-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/currency/exchange-rates-dialog.component.ts @@ -24,17 +24,17 @@ export class ExchangeRatesDialogComponent @Input() currencyCode: string; currency: IdlObject; otherCurrencies: IdlObject[]; - existingRatios: {[toCurrency: string]: IdlObject} = {} - existingInverseRatios: {[fromCurrency: string]: IdlObject} = {} + existingRatios: {[toCurrency: string]: IdlObject} = {}; + existingInverseRatios: {[fromCurrency: string]: IdlObject} = {}; ratios: IdlObject[]; idlDef: any; fieldOrder: any; - canUpdate: boolean = false; - doneLoading: boolean = false; + canUpdate = false; + doneLoading = false; @ViewChild('successString', { static: true }) successString: StringComponent; @ViewChild('updateFailedString', { static: false }) updateFailedString: StringComponent; - + constructor( private idl: IdlService, private evt: EventService, @@ -47,7 +47,7 @@ export class ExchangeRatesDialogComponent ) { super(modal); } - + ngOnInit() { this.currency = null; this.onOpen$.subscribe(() => this._initRecord()); @@ -102,7 +102,7 @@ export class ExchangeRatesDialogComponent const toCur = ratio.to_currency(); ratio.to_currency(ratio.from_currency()); ratio.from_currency(toCur); - ratio.ratio(1.0/ratio.ratio()); + ratio.ratio(1.0 / ratio.ratio()); this.ratios.push(ratio); } else { const ratio = this.idl.create('acqexr'); -- 2.11.0