Skip to content

Commit

Permalink
Flush default files, to avoid empty base files errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ranfdev authored Jan 4, 2021
2 parents a007eb4 + 82b710a commit 864ee03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async fn init_file_if_not_exists(

if let Some(text) = text {
file.write_all(text).await?;
file.flush().await?;
}
}
Ok(())
Expand Down

0 comments on commit 864ee03

Please sign in to comment.