From 259635c26598459b19aee1e67f0b39f3276519f2 Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Fri, 4 Mar 2022 10:17:27 +0100
Subject: [PATCH] [player] Use function notation for transform method in cast
 pipe

to avoid lint errors in templates
---
 projects/player/src/app/pipes/cast.pipe.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/projects/player/src/app/pipes/cast.pipe.ts b/projects/player/src/app/pipes/cast.pipe.ts
index ead380e4b..4c1e2c1b1 100644
--- a/projects/player/src/app/pipes/cast.pipe.ts
+++ b/projects/player/src/app/pipes/cast.pipe.ts
@@ -4,5 +4,8 @@ import { Pipe, PipeTransform } from '@angular/core';
   name: 'cast'
 })
 export class CastPipe implements PipeTransform {
-  transform = <S, T extends S>(value: S, type: T): T => <T>value;
+  // eslint-disable-next-line class-methods-use-this
+  transform<S, T extends S>(value: S, type: T): T {
+    return <T>value;
+  }
 }
-- 
GitLab