Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 4, 2022
1 parent ecd60d7 commit 2abedb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions git-ref/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ impl<'a> FullNameRef<'a> {
}

if self.0.starts_with(Category::Note.prefix()) {
return Some((
Some((
Category::Note,
self.0
.strip_prefix(b"refs/")
.expect("we checked for refs/notes above")
.as_bstr(),
));
))
} else {
None
}
None
}
}

Expand Down

0 comments on commit 2abedb8

Please sign in to comment.