diff --git a/src/app/report/edit-display/encoding-button/encoding-button.component.ts b/src/app/report/edit-display/encoding-button/encoding-button.component.ts index 71be336b..ae1accc4 100644 --- a/src/app/report/edit-display/encoding-button/encoding-button.component.ts +++ b/src/app/report/edit-display/encoding-button/encoding-button.component.ts @@ -19,7 +19,7 @@ export class EncodingButtonComponent implements OnChanges { constructor(private toastService: ToastService) {} - ngOnChanges(changes: SimpleChanges) { + ngOnChanges() { this.showEncodingButton = ReportUtil.isCheckPoint(this.selectedNode) && this.selectedNode.encoding === 'Base64'; } diff --git a/src/app/shared/util/update-report-util.ts b/src/app/shared/util/update-report-util.ts deleted file mode 100644 index 2a6df0db..00000000 --- a/src/app/shared/util/update-report-util.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { UpdateReport } from '../interfaces/update-report'; -import { UpdateCheckpoint } from '../interfaces/update-checkpoint'; - -export const UpdateReportUtil = { - isUpdateReport(object: UpdateReport | UpdateCheckpoint): object is UpdateReport { - return !!(object as UpdateReport).name; - }, - - isUpdateCheckpoint(object: UpdateReport | UpdateCheckpoint): object is UpdateCheckpoint { - return !!(object as UpdateCheckpoint).checkpointMessage; - }, -};