summaryrefslogtreecommitdiff
path: root/server/common/src/git.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:05:56 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:05:56 +0200
commit63774b3b4db4ab4750449548db2b716c6cb1a3bf (patch)
tree554d60fe311e6eae23460aaabe400918ef9dc509 /server/common/src/git.rs
parent0784fd95bcca54c01285097eddea01020203e0a4 (diff)
clippy: Remove unnecessary return
Diffstat (limited to 'server/common/src/git.rs')
-rw-r--r--server/common/src/git.rs4
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
}
}