mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-30 16:10:23 +00:00
refs: leverage Conflict::is_resolved()
This commit is contained in:
parent
465b8d9cf0
commit
961bb49ff0
2 changed files with 2 additions and 3 deletions
|
@ -200,7 +200,7 @@ impl RefTarget {
|
|||
|
||||
// TODO: overloaded naming: is_conflict() vs as_conflict()
|
||||
pub fn is_conflict(&self) -> bool {
|
||||
self.conflict.as_resolved().is_none() // TODO: !is_resolved()
|
||||
!self.conflict.is_resolved()
|
||||
}
|
||||
|
||||
pub fn removed_ids(&self) -> impl Iterator<Item = &CommitId> {
|
||||
|
|
|
@ -37,8 +37,7 @@ pub fn merge_ref_targets(
|
|||
.flatten()
|
||||
.simplify();
|
||||
|
||||
// TODO: switch to conflict.is_resolved()
|
||||
if conflict.as_resolved().is_some() {
|
||||
if conflict.is_resolved() {
|
||||
RefTarget::from_conflict(conflict)
|
||||
} else {
|
||||
let conflict = merge_ref_targets_non_trivial(index, conflict);
|
||||
|
|
Loading…
Reference in a new issue