mirror of
https://github.com/sharkdp/fd.git
synced 2026-09-01 15:12:46 +08:00
Refactorying main.rs : remove unused variable (empty_pattern)
This commit is contained in:
+1
-2
@@ -48,8 +48,7 @@ fn main() {
|
||||
let matches = app::build_app().get_matches();
|
||||
|
||||
// Get the search pattern
|
||||
let empty_pattern = String::new();
|
||||
let pattern = matches.value_of("pattern").unwrap_or(&empty_pattern);
|
||||
let pattern = matches.value_of("pattern").unwrap_or("");
|
||||
|
||||
// Get the current working directory
|
||||
let current_dir = Path::new(".");
|
||||
|
||||
Reference in New Issue
Block a user