Skip to content

Commit

Permalink
fix: remove code block from redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
Velka-DEV committed Apr 20, 2024
1 parent 56c4d9c commit 88fd713
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ fn main() {
extension_map.insert("php", "php");

println!("Project tree:");
println!("```");
print_directory_tree(current_dir, 0, &exclude_patterns);
print!("```");

println!("\nFiles:");
print_file_contents(current_dir, &extensions, &extension_map, &exclude_patterns);
Expand All @@ -57,8 +59,6 @@ fn main() {
fn print_directory_tree(dir: &str, level: usize, exclude_patterns: &[&str]) {
let entries = fs::read_dir(dir).unwrap();

println!("```");

for (i, entry) in entries.enumerate() {
let entry = entry.unwrap();
let path = entry.path();
Expand All @@ -81,7 +81,6 @@ fn print_directory_tree(dir: &str, level: usize, exclude_patterns: &[&str]) {
}
}

print!("```");
}

fn print_file_contents(
Expand Down

0 comments on commit 88fd713

Please sign in to comment.