Fixed yarn lint error.

Signed-off-by: Daniel Doberenz <daniel.doberenz@lichtblick.de>
This commit is contained in:
Daniel Doberenz
2023-11-15 08:53:22 +01:00
parent abfaf8c502
commit 4248af8b47
@@ -21,10 +21,10 @@
* @returns List of scopes
* @public
*/
export const scopeHelper = function (
export const scopeHelper = (
defaultScopes: string[],
additionalScopes?: string[],
): string[] {
): string[] => {
const scope: string[] = defaultScopes.concat(additionalScopes || []);
return scope.filter((value, index) => scope.indexOf(value) === index);
};