Merge branch 'main' into cn/workspace-inheritance

pull/24376/head
kodiakhq[bot] 2022-10-24 20:10:08 +00:00 committed by GitHub
commit 48d806b326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ pub async fn command(connection: Connection, config: Config) -> Result<(), Error
let mut file = File::create(&get.file_name).await?;
while let Some(res) = response.next().await {
let res = res.unwrap();
let _ = file.write(&res.data).await?;
file.write_all(&res.data).await?;
}
println!("wrote data to {}", get.file_name);