mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 07:07:07 +03:00
Cleanup
This commit is contained in:
parent
2c5d5f5719
commit
709771a449
@ -114,9 +114,9 @@ fn handle_build<N: Network>(command: &Build, context: Context) -> Result<<Build
|
||||
// Clear and recreate the build directory.
|
||||
let build_directory = package_path.join("build");
|
||||
if build_directory.exists() {
|
||||
std::fs::remove_dir_all(&build_directory).map_err(|err| CliError::build_error(err))?;
|
||||
std::fs::remove_dir_all(&build_directory).map_err(CliError::build_error)?;
|
||||
}
|
||||
Package::create(&build_directory, &program_id).map_err(|err| CliError::build_error(err))?;
|
||||
Package::create(&build_directory, &program_id).map_err(CliError::build_error)?;
|
||||
|
||||
// Initialize error handler
|
||||
let handler = Handler::default();
|
||||
|
Loading…
Reference in New Issue
Block a user