eslint-plugin-promise
eslint-plugin-promise copied to clipboard
`no-multiple-resolved` wrongly reports `reject` in try/catch block
trafficstars
From #382, which I think wasn't fully fixed
try {
resolve(someThrowingFn())
} catch (error) {
reject(error)
}
still errors for me. It doesn't error if I do this:
try {
const data = someThrowingFn()
resolve(data)
} catch (error) {
reject(error)
}
But those two are identical and should behave same way?