mirror of
https://github.com/qwjyh/xdbm
synced 2025-04-20 03:35:55 +09:00
refactor: change merge analysis match order
This commit is contained in:
parent
af9f57b408
commit
2452a023ad
1 changed files with 4 additions and 4 deletions
|
@ -211,14 +211,14 @@ fn pull(
|
||||||
merge_analysis
|
merge_analysis
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
ma if ma.is_normal() => {
|
|
||||||
error!("unable to fast-forward. manual merge is required");
|
|
||||||
return Err(anyhow!("unable to fast-forward. manual merge is required"));
|
|
||||||
}
|
|
||||||
ma if ma.is_none() => {
|
ma if ma.is_none() => {
|
||||||
error!("no merge is possible");
|
error!("no merge is possible");
|
||||||
return Err(anyhow!("no merge is possible"));
|
return Err(anyhow!("no merge is possible"));
|
||||||
}
|
}
|
||||||
|
ma if ma.is_normal() => {
|
||||||
|
error!("unable to fast-forward. manual merge is required");
|
||||||
|
return Err(anyhow!("unable to fast-forward. manual merge is required"));
|
||||||
|
}
|
||||||
_ma => {
|
_ma => {
|
||||||
error!(
|
error!(
|
||||||
"this code must not reachable: merge_analysis {:?}",
|
"this code must not reachable: merge_analysis {:?}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue