Skip to content

Commit f695e3f

Browse files
committed
refactor: remove unnecessary slash in tracker url
1 parent 4288f65 commit f695e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/web/api/v1/contexts/torrent/asserts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ pub async fn get_user_tracker_key(logged_in_user: &LoggedInUserData, env: &TestE
5858

5959
pub fn build_announce_url(tracker_url: &str, tracker_key: &Option<TrackerKey>) -> String {
6060
if let Some(key) = &tracker_key {
61-
format!("{tracker_url}/{}", key.key)
61+
format!("{tracker_url}{}", key.key)
6262
} else {
6363
tracker_url.to_string()
6464
}
6565
}
6666

6767
fn build_announce_list(tracker_url: &str, tracker_key: &Option<TrackerKey>) -> Vec<Vec<String>> {
6868
if let Some(key) = &tracker_key {
69-
vec![vec![format!("{tracker_url}/{}", key.key)], vec![format!("{tracker_url}")]]
69+
vec![vec![format!("{tracker_url}{}", key.key)], vec![format!("{tracker_url}")]]
7070
} else {
7171
vec![vec![format!("{tracker_url}")]]
7272
}

0 commit comments

Comments
 (0)