fix(lib/init/preinit): revert 'chore: remove unnecessary returns and blocks'

This commit is contained in:
PalmDevs 2025-04-30 19:22:55 +07:00
parent 96c99c428a
commit f64d0d6c55
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -3,7 +3,4 @@ import { interceptProperty } from '@revenge-mod/utils/objects'
// By doing this, we are assuming __METRO_GLOBAL_PREFIX__ is an empty string
// and globalThis.__d isn't already set (which should be the case anyways)
const unintercept = interceptProperty('__d', (_, mDefine) => {
unintercept()
patchMetroDefine(mDefine)
})
const unintercept = interceptProperty('__d', (_, mDefine) => (unintercept(), patchMetroDefine(mDefine)))