Skip to content

Commit 030d880

Browse files
authored
Merge pull request #1548 from nyurik/rm-dup-code
One fix of clippy::match_same_arms
2 parents f992fb7 + 5bf18fb commit 030d880

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

gix-validate/src/tag.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ pub(crate) fn name_inner(input: &BStr, mode: Mode) -> Result<Option<BString>, na
116116
return Err(name::Error::RepeatedSlash);
117117
}
118118
}
119-
b'.' if previous == b'/' => {
120-
if let Some(out) = out.as_mut() {
121-
out.push(b'-');
122-
} else {
123-
return Err(name::Error::StartsWithDot);
124-
}
125-
}
126119
c => {
127120
if *c == b'/' {
128121
component_start = component_end;

0 commit comments

Comments
 (0)