refactor: change merge analysis match order

This commit is contained in:
qwjyh 2025-02-27 02:14:41 +09:00
parent af9f57b408
commit 2452a023ad

View file

@ -211,14 +211,14 @@ fn pull(
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() => {
error!("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 => {
error!(
"this code must not reachable: merge_analysis {:?}",