diff options
Diffstat (limited to 'src/bin/git_remote_nostr/utils.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/utils.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs index 5048ce2..3a9f07d 100644 --- a/src/bin/git_remote_nostr/utils.rs +++ b/src/bin/git_remote_nostr/utils.rs | |||
| @@ -354,16 +354,6 @@ pub fn set_protocol_preference( | |||
| 354 | ) | 354 | ) |
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | /// to understand whether to try over another protocol | ||
| 358 | pub fn fetch_or_list_error_is_not_authentication_failure(error: &anyhow::Error) -> bool { | ||
| 359 | !error_might_be_authentication_related(error) | ||
| 360 | } | ||
| 361 | |||
| 362 | /// to understand whether to try over another protocol | ||
| 363 | pub fn push_error_is_not_authentication_failure(error: &anyhow::Error) -> bool { | ||
| 364 | !error_might_be_authentication_related(error) | ||
| 365 | } | ||
| 366 | |||
| 367 | pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool { | 357 | pub fn error_might_be_authentication_related(error: &anyhow::Error) -> bool { |
| 368 | let error_str = error.to_string(); | 358 | let error_str = error.to_string(); |
| 369 | for s in [ | 359 | for s in [ |