Skip to content

[Code health] Throw exception instead of returning Error on relevant conversion functions #1915

@gino-m

Description

@gino-m

Returning Error adds complexity at the call site, whereas exceptions move handling away from the call site. We should instead only return Error internally on functions which are intended to be called on multiple items (e.g., via map()) and filtered.

Metadata

Metadata

Assignees

Labels

cloud functionsServer-side Cloud Functions hosted in Firebase, including database triggerstype: code healthImprovements to readability or robustness of codebase

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions