fix: remove redundant check to allow operations on the shell command with an empty file list

This commit is contained in:
sxyazi 2024-03-03 09:55:37 +08:00
parent bd572706cd
commit 1835fba8ea
No known key found for this signature in database

View file

@ -69,9 +69,7 @@ impl Tasks {
}
pub fn file_open_with(&self, opener: &Opener, args: &[impl AsRef<OsStr>]) {
if args.len() < 2 {
return;
} else if opener.spread {
if opener.spread {
self.scheduler.process_open(opener, args);
return;
}