diff options
Diffstat (limited to 'server/common/src/git.rs')
| -rw-r--r-- | server/common/src/git.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/common/src/git.rs b/server/common/src/git.rs index 07c7e32..6b6cb6c 100644 --- a/server/common/src/git.rs +++ b/server/common/src/git.rs @@ -164,12 +164,12 @@ fn branch_eq(a: impl AsRef<str>, b: impl AsRef<str>) -> bool { if let Some(stripped_b) = b.strip_prefix("refs/heads/") { return stripped_a == stripped_b; } - return a == format!("refs/heads/{b}"); + a == format!("refs/heads/{b}") } else { if b.starts_with("refs/heads/") { return format!("refs/heads/{a}") == b; } - return a == b; + a == b } } |
