Closed mattcollier closed 1 week ago
The async sendAlert() function call on L46 does not work as intended with the try/catch block that surrounds it. I believe this inspired the additional try/catch block inside sendAlert itself.
sendAlert()
try/catch
sendAlert
https://github.com/Entle/action-pagerduty-alert/blob/main/index.js#L46
This PR is one possible remedy to this redundant code.
Thanks for the input. I've refactored the code quite a bit in the latest version to address this.
The async
sendAlert()
function call on L46 does not work as intended with thetry/catch
block that surrounds it. I believe this inspired the additionaltry/catch
block insidesendAlert
itself.https://github.com/Entle/action-pagerduty-alert/blob/main/index.js#L46
This PR is one possible remedy to this redundant code.