Skip to content

Commit

Permalink
Cleanup (#49)
Browse files Browse the repository at this point in the history
Remove printlns and unused code
  • Loading branch information
eirikb authored May 26, 2023
1 parent eda24c3 commit 7008b94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/stage4/src/bloody_indiana_jones.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use futures_util::StreamExt;
use indicatif::ProgressBar;
use log::{debug, info};
use std::cmp::min;
use std::fs::{create_dir_all, File, read_dir, remove_dir, rename};
use std::io::Write;
use std::path::{Path, PathBuf};

use futures_util::StreamExt;
use indicatif::ProgressBar;
use log::{debug, info};
use tokio::task;

fn get_file_name(url: &str) -> String {
Expand Down Expand Up @@ -98,10 +99,8 @@ pub async fn download_unpack_and_all_that_stuff(url: &str, path: &str, pb: &Prog
}
Some("tar") => (),
_ => {
println!("What now...");
pb.set_message("Move");
create_dir_all(&path).expect("Unable to create download dir");
// let mut file_writer = tokio::io::BufWriter::new(tokio::fs::File::create(file_path_decomp).await.unwrap());
rename(&file_path, path.to_string() + "/" + file_name.as_str()).unwrap();
pb.finish_with_message("Done");
return;
Expand Down
1 change: 0 additions & 1 deletion src/stage4/src/openapigenerator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ impl Executor for OpenAPIGenerator {
entries.for_each(|entry| {
if let Ok(entry) = entry {
if let Some(path_str) = entry.path().to_str() {
dbg!(&path_str);
if path_str.contains("openapi-generator-cli") && path_str.ends_with("jar") {
rename(entry.path(), cache_path.to_string() + "/openapi-generator-cli.jar").unwrap();
}
Expand Down

0 comments on commit 7008b94

Please sign in to comment.