mirror of
https://github.com/koush/scrypted.git
synced 2026-05-05 22:00:27 +01:00
Previously, if this.serialize() threw an exception, result would be undefined when passed to createErrorResult. This fix brings TypeScript in sync with the Python rpc.py implementation which already initializes result before the try block.