Refactor command handler return logic for clarity #41

Merged
marko merged 1 commits from patch-new-sub-with-return into dev 2025-10-16 17:57:17 +00:00

1 Commits

Author SHA1 Message Date
728319d81e Refactor command handler return logic for clarity
Improved the command handler functions within the Nuki Bridge module
by standardizing return statements for consistency. Each command now
immediately returns after assigning its respective endpoint, ensuring
clearer control flow. This change simplifies the readability of the
code and ensures that all command handlers consistently exit without
proceeding further when their conditions are met.

Additionally, unnecessary checks for the endpoint were removed,
streamlining the handling of responses. These adjustments should help
reduce confusion and make future modifications easier, without
introducing any breaking changes.
2025-10-16 19:50:36 +02:00