Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum committed Dec 12, 2024
1 parent 7d4a2ff commit ed4bcc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/databases/remote_databases/get_remote_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ pub async fn get_remote_database(
let db = SnowflakeRemoteDatabase::new(content)?;
Ok(Box::new(db) as Box<dyn RemoteDatabase + Sync + Send>)
}
CredentialProvider::Modjo => {
anyhow::bail!("Modjo is not a remote database provider")
}
}
}
4 changes: 4 additions & 0 deletions core/src/databases/remote_databases/remote_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ pub async fn get_remote_database(
let db = SnowflakeRemoteDatabase::new(content)?;
Ok(Box::new(db) as Box<dyn RemoteDatabase + Sync + Send>)
}
_ => Err(anyhow::anyhow!(
"Provider {} is not a remote database",
provider
)),
}
}

0 comments on commit ed4bcc5

Please sign in to comment.