chore: format

This commit is contained in:
Timothy Jaeryang Baek 2025-03-04 22:10:47 -08:00
parent c2eada36f1
commit e2d60bd92e
2 changed files with 23 additions and 21 deletions

View File

@ -65,7 +65,6 @@ async def process_filter_functions(
**(valves if valves else {}) **(valves if valves else {})
) )
try: try:
# Prepare parameters # Prepare parameters
sig = inspect.signature(handler) sig = inspect.signature(handler)

View File

@ -18,7 +18,6 @@ async function getCredentials() {
} }
} }
let msalInstance: PublicClientApplication | null = null; let msalInstance: PublicClientApplication | null = null;
// Initialize MSAL authentication // Initialize MSAL authentication
@ -44,7 +43,9 @@ async function initializeMsal() {
return msalInstance; return msalInstance;
} catch (error) { } catch (error) {
throw new Error('MSAL initialization failed: ' + (error instanceof Error ? error.message : String(error))); throw new Error(
'MSAL initialization failed: ' + (error instanceof Error ? error.message : String(error))
);
} }
} }
@ -73,7 +74,10 @@ async function getToken(): Promise<string> {
accessToken = resp2.accessToken; accessToken = resp2.accessToken;
} }
} catch (popupError) { } catch (popupError) {
throw new Error('Failed to login: ' + (popupError instanceof Error ? popupError.message : String(popupError))); throw new Error(
'Failed to login: ' +
(popupError instanceof Error ? popupError.message : String(popupError))
);
} }
} }
@ -106,7 +110,6 @@ const params = {
} }
}; };
// Download file from OneDrive // Download file from OneDrive
async function downloadOneDriveFile(fileInfo: any): Promise<Blob> { async function downloadOneDriveFile(fileInfo: any): Promise<Blob> {
const accessToken = await getToken(); const accessToken = await getToken();