Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <ian@tembo.io>
  • Loading branch information
ianstanton committed Sep 25, 2024
1 parent 4227c09 commit 8300816
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conductor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ pub async fn generate_spec(

if let Some(restore) = &mut spec.restore {
if let Some(backups_path) = &mut restore.backups_path {
if !backups_path.starts_with(&format!("s3://{}", backups_bucket))
{
if !backups_path.starts_with(&format!("s3://{}", backups_bucket)) {
let path_suffix = backups_path.trim_start_matches("s3://");
*backups_path = format!("s3://{}/{}", backups_bucket, path_suffix);
}
Expand Down

0 comments on commit 8300816

Please sign in to comment.