refactor: remove unused imports and function for cleaner code
Some checks failed
build / build (push) Failing after 13s
Some checks failed
build / build (push) Failing after 13s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user