Closed dessalines closed 1 week ago
This is a maintenance task to clean up all or most Result<bool, Error> , into Result<(), Error.
Result<bool, Error>
Result<(), Error
For all these, we only need to care about 2 cases out of the 3:
Ok
Err
Ok(true)
Ok(false)
Error
Since we only care about the Some(true) case, and not the Some(false) case, this could lead to some code problems.
Some(true)
Some(false)
See above
NA
https://github.com/LemmyNet/lemmy/pull/4860#discussion_r1649389837
Requirements
Is your proposal related to a problem?
This is a maintenance task to clean up all or most
Result<bool, Error>
, intoResult<(), Error
.For all these, we only need to care about 2 cases out of the 3:
Ok
andErr
, notOk(true)
,Ok(false)
, andError
Since we only care about the
Some(true)
case, and not theSome(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