LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.18k stars 871 forks source link

Cleanup all `Result<bool, Error>`, into `Result<(), Error>` #4862

Closed dessalines closed 1 week ago

dessalines commented 3 months ago

Requirements

Is your proposal related to a problem?

This is a maintenance task to clean up all or most Result<bool, Error> , into Result<(), Error.

For all these, we only need to care about 2 cases out of the 3:

Since we only care about the Some(true) case, and not the Some(false) case, this could lead to some code problems.

Describe the solution you'd like.

See above

Describe alternatives you've considered.

NA

Additional context

https://github.com/LemmyNet/lemmy/pull/4860#discussion_r1649389837