mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 08:30:30 +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.