mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:20:44 +00:00
refactor: trim hook helper exports
This commit is contained in:
@@ -88,7 +88,7 @@ export async function getRecentSessionContentWithResetFallback(
|
||||
}
|
||||
}
|
||||
|
||||
export function stripResetSuffix(fileName: string): string {
|
||||
function stripResetSuffix(fileName: string): string {
|
||||
const resetIndex = fileName.indexOf(".reset.");
|
||||
return resetIndex === -1 ? fileName : fileName.slice(0, resetIndex);
|
||||
}
|
||||
|
||||
@@ -233,10 +233,3 @@ export async function stopGmailWatcher(): Promise<void> {
|
||||
currentConfig = null;
|
||||
log.info("gmail watcher stopped");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the Gmail watcher is running.
|
||||
*/
|
||||
export function isGmailWatcherRunning(): boolean {
|
||||
return watcherProcess !== null && !shuttingDown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user