mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
various code quality fixes (#5792)
* various code quality fixes * reduce duplicated code * add safety check
This commit is contained in:
@@ -120,8 +120,8 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
||||
return this.showDetails;
|
||||
}
|
||||
|
||||
isCurrent(position: number) {
|
||||
return position === this.currentChartPosition ? true : false;
|
||||
isCurrent(position: number): boolean {
|
||||
return position === this.currentChartPosition;
|
||||
}
|
||||
|
||||
selectCurrent(position: number) {
|
||||
|
Reference in New Issue
Block a user