forked from extern/nushell
Mostly, making more use of `map` and `map_err` in `Result`. One benefit is that at least one location had duplicated logic for how to map the error, which is no longer the case after this commit.
Mostly, making more use of `map` and `map_err` in `Result`. One benefit is that at least one location had duplicated logic for how to map the error, which is no longer the case after this commit.