Skip to content

Commit 0237abe

Browse files
committed
Fix clippy warning
1 parent b13bd16 commit 0237abe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/project_generator.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,8 @@ pub fn generate_project(project_info: &ProjectInfo) -> Result<()> {
679679
}
680680
}
681681

682-
if project_info.use_continuous_deployment {
683-
if save_pypi_publish_file(project_info).is_err() {
684-
bail!("Error creating PYPI publish file");
685-
}
682+
if project_info.use_continuous_deployment && save_pypi_publish_file(project_info).is_err() {
683+
bail!("Error creating PYPI publish file");
686684
}
687685

688686
if project_info.use_multi_os_ci {

0 commit comments

Comments
 (0)