says it returns a promise for void. But does it actually? AFAICT, it immediately returns only undefined and therefore should be declared as returning either void or undefined.
I noticed this when I got a @typescript-eslint/no-floating-promises lint error on the statement
https://github.com/endojs/endo/blob/7a2955080f34880c8028e1b2dff06bf7b969790f/packages/eventual-send/src/E.js#L299
says it returns a promise for void. But does it actually? AFAICT, it immediately returns only
undefined
and therefore should be declared as returning eithervoid
orundefined
.I noticed this when I got a
@typescript-eslint/no-floating-promises
lint error on the statement