mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
chore: 使用命令更新内存订阅
This commit is contained in:
7
src/utils.ts
Normal file
7
src/utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const tryRun = <T>(fc: () => T, fallbackFc: (e: unknown) => T) => {
|
||||
try {
|
||||
return fc();
|
||||
} catch (e) {
|
||||
return fallbackFc(e);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user