diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-05 12:57:39 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-05 12:57:39 +0200 |
commit | 3c2c2c2494e88f6eaa6a1e8ca3a8808effb41847 (patch) | |
tree | ba619f234fb06bdd7ca485cf632793b1c5d9c39a | |
parent | a4d6e64dd2ce6da8d038c3296ac1a3d50d6e9451 (diff) | |
download | radicle-ci-broker-3c2c2c2494e88f6eaa6a1e8ca3a8808effb41847.tar.gz |
fix: avoid unnecessary return at the end of a function
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/event.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs index 6c59f4b..d270fa6 100644 --- a/src/event.rs +++ b/src/event.rs @@ -370,7 +370,6 @@ pub fn is_patch_ref(name: &str) -> Option<&str> { None } - pub fn push_branch(name: &str) -> String { let mut parts = name.split("/refs/heads/"); if let Some(suffix) = parts.nth(1) { @@ -378,7 +377,7 @@ pub fn push_branch(name: &str) -> String { return suffix.to_string(); } } - return "".to_string() + "".to_string() } #[cfg(test)] |