mirror of
https://github.com/koush/scrypted.git
synced 2026-09-27 14:10:40 +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.