Drop unnecessary mapping of error code on push failure

- the removed line would overwrite any previously set code
- unknown is still the default if code is missing
This commit is contained in:
Mattias Granlund 2024-09-14 13:24:18 +01:00
parent 97d117bb02
commit b4f30530b0

View File

@ -9,7 +9,6 @@ pub mod commands {
RemoteBranchData, RemoteBranchFile, VirtualBranches,
};
use gitbutler_command_context::CommandContext;
use gitbutler_error::error::Code;
use gitbutler_project as projects;
use gitbutler_project::{FetchResult, ProjectId};
use gitbutler_reference::{
@ -275,8 +274,7 @@ pub mod commands {
branch_id,
with_force,
Some(Some(branch_id)),
)
.map_err(|err| err.context(Code::Unknown))?;
)?;
emit_vbranches(&windows, project_id);
Ok(upstream_refname)
}