1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-29 20:43:09 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Refactor assertRelease function

This commit is contained in:
sunnylqm
2024-04-18 22:39:03 +08:00
parent de332c1796
commit 1f75688b92
2 changed files with 42 additions and 21 deletions

View File

@@ -2,11 +2,6 @@ export function log(...args: any[]) {
console.log('pushy: ', ...args);
}
export function assertRelease() {
if (__DEV__) {
throw new Error('react-native-update 只能在 RELEASE 版本中运行.');
}
}
const ping = async (url: string) =>
Promise.race([