mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 05:47:32 +00:00
Avoid early return
This commit is contained in:
parent
06157fdedd
commit
f86c49cd4a
@ -275,16 +275,15 @@ impl TimeTypes {
|
||||
|
||||
if let Some(word) = possible_word {
|
||||
if modified {
|
||||
return Err(Misfire::Useless(&flags::MODIFIED, true, &flags::TIME));
|
||||
Err(Misfire::Useless(&flags::MODIFIED, true, &flags::TIME))
|
||||
}
|
||||
else if created {
|
||||
return Err(Misfire::Useless(&flags::CREATED, true, &flags::TIME));
|
||||
Err(Misfire::Useless(&flags::CREATED, true, &flags::TIME))
|
||||
}
|
||||
else if accessed {
|
||||
return Err(Misfire::Useless(&flags::ACCESSED, true, &flags::TIME));
|
||||
Err(Misfire::Useless(&flags::ACCESSED, true, &flags::TIME))
|
||||
}
|
||||
|
||||
if word == "mod" || word == "modified" {
|
||||
else if word == "mod" || word == "modified" {
|
||||
Ok(TimeTypes { accessed: false, modified: true, created: false })
|
||||
}
|
||||
else if word == "acc" || word == "accessed" {
|
||||
|
Loading…
Reference in New Issue
Block a user