Commit d0624079 authored by Libin Lu's avatar Libin Lu Committed by GitHub

remove error try catch

parent bbbd56d4
......@@ -126,12 +126,7 @@ FCM.on = (event, callback) => {
if(event === FCMEvent.Notification){
return DeviceEventEmitter.addListener(event, async(data)=>{
data.finish = finish;
try{
await callback(data);
} catch(err){
console.error('Notification handler err', err)
throw err;
}
if(!data._finishCalled){
data.finish();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment