From a285a9e4c9a86706dd89b8090c91a6293d04c29e Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Thu, 3 Mar 2022 08:59:57 +0100
Subject: [PATCH] [player] Convert `transform` function of CastPipe to arrow
 function

---
 projects/player/src/app/pipes/cast.pipe.ts | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/projects/player/src/app/pipes/cast.pipe.ts b/projects/player/src/app/pipes/cast.pipe.ts
index d3e0502c4..ead380e4b 100644
--- a/projects/player/src/app/pipes/cast.pipe.ts
+++ b/projects/player/src/app/pipes/cast.pipe.ts
@@ -4,14 +4,5 @@ import { Pipe, PipeTransform } from '@angular/core';
   name: 'cast'
 })
 export class CastPipe implements PipeTransform {
-  /**
-   * Cast (S: SuperType) into (T: Type) using @Generics.
-   * @param value (S: SuperType) obtained from input type.
-   * @optional @param type (T CastingType)
-   * type?: { new (): T }
-   * type?: new () => T
-   */
-  transform<S, T extends S>(value: S, type?: T): T {
-    return <T>value;
-  }
+  transform = <S, T extends S>(value: S, type: T): T => <T>value;
 }
-- 
GitLab