map

Maps a result of any type to a result with a Unit payload, preserving success/error status.

This is useful when you need to convert a typed result to a simple success/failure indicator without caring about the actual data payload.

Return

A new LocalzResult with the same success/error status but with Unit as the success payload.