fix: remove return value

This commit is contained in:
Lethe 2026-01-24 18:33:36 +09:00
parent b38da3afba
commit 8efff67aed

View File

@ -197,7 +197,7 @@ const removeListener: CaptureProtectionFunction['removeListener'] = async (
console.warn(
`[react-native-capture-protection] Platform ${Platform.OS} not supported`
);
return undefined;
return;
}
if (emitter) {
emitter.remove();