Skip to content

Commit b6111a4

Browse files
committed
Refactor away unnecessary function.
1 parent e30a64e commit b6111a4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,9 @@ lazy_static! {
2121
};
2222
}
2323

24-
/// Get the remote url
25-
fn get_remote_url(remote_name: &str) -> String {
26-
git::get_remote_url(remote_name)
27-
}
28-
2924
/// Get the remote for the current project
3025
fn get_remote(remote_name: &str, fetch_api_key: bool) -> Result<Box<dyn remotes::Remote>, String> {
31-
let remote_url = get_remote_url(remote_name);
26+
let remote_url = git::get_remote_url(remote_name);
3227
remotes::get_remote(remote_name, &remote_url, !fetch_api_key)
3328
}
3429

0 commit comments

Comments
 (0)