fix rfds from when i changed everything to anyhow errors
@@ -178,7 +178,12 @@ pub async fn create_or_update_file_in_github_repo(
}
// Try to get the content for the file from the repo.
- let (existing_content, sha) = get_file_content_from_repo(github, owner, repo, branch, path).await?;
+ let (existing_content, sha) =
+ if let Ok((e, s)) = get_file_content_from_repo(github, owner, repo, branch, path).await {
+ (e, s)
+ } else {
+ (vec![], "".to_string())
+ };
if !existing_content.is_empty() || !sha.is_empty() {
if content == existing_content {
