Skip to content

Conversation

@KeunwooLee-at
Copy link

The exports->Set call here returns a Maybe<bool> indicating whether it succeeded. Before this change, we ignored this result. This effectively never fails, but the unused result triggers a warning in some compilers.

This change adds a Check() to this site to assert that the export succeeded. Note that this crashes the process on failure, but as noted this failure shouldn't happen, and it's unlikely that clients can usefully recover in any case.

The `exports->Set` call here returns a `Maybe<bool>` indicating
whether it succeeded.  Before this change, we ignored this result.
This effectively never fails, but the unused result triggers a warning
in some compilers.

This change adds a Check() to this site to assert that the export
succeeded.  Note that this crashes the process on failure, but as
noted this failure shouldn't happen, and it's unlikely that clients
can usefully recover in any case.
@KeunwooLee-at KeunwooLee-at force-pushed the keunwoo-checkExportSucceeds branch from 9fcfffc to 8db30d3 Compare July 18, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant