refactor: remove unused imports and function for cleaner code
Some checks failed
build / build (push) Failing after 13s

This commit is contained in:
2026-03-08 07:56:45 +01:00
parent 63eb9c3cad
commit 0829b35113

View File

@@ -2,9 +2,6 @@
import { minimatch } from "minimatch";
import { loadConfig } from "../../index.ts";
import { getGraphClient } from "../../graph/auth.ts";
type PermissionRow = {
permissionValue?: string | null;
permissionDisplayName?: string | null;
@@ -26,8 +23,3 @@ export function filterByDisplayName<T extends DisplayNameRow>(rows: T[], pattern
minimatch(item.displayName ?? "", pattern, { nocase: true }),
);
}
export async function getGraphClientFromPublicConfig(): Promise<{ client: any }> {
const config = await loadConfig("public-config");
return getGraphClient(config.tenantId, config.clientId);
}