mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-02 22:42:56 +03:00
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:
parent
97d117bb02
commit
b4f30530b0
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user