mirror of https://github.com/sharkdp/fd.git
simplify check in prent_entry
This commit is contained in:
parent
953f586f26
commit
2e115df9e7
|
@ -22,7 +22,7 @@ pub fn print_entry(
|
||||||
config: &Config,
|
config: &Config,
|
||||||
wants_to_quit: &Arc<AtomicBool>,
|
wants_to_quit: &Arc<AtomicBool>,
|
||||||
) {
|
) {
|
||||||
let path = if entry.is_absolute() || config.no_strip {
|
let path = if config.no_strip {
|
||||||
entry
|
entry
|
||||||
} else {
|
} else {
|
||||||
strip_current_dir(entry)
|
strip_current_dir(entry)
|
||||||
|
|
Loading…
Reference in New Issue