mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-29 15:13:54 +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 let Some(word) = possible_word {
|
||||||
if modified {
|
if modified {
|
||||||
return Err(Misfire::Useless(&flags::MODIFIED, true, &flags::TIME));
|
Err(Misfire::Useless(&flags::MODIFIED, true, &flags::TIME))
|
||||||
}
|
}
|
||||||
else if created {
|
else if created {
|
||||||
return Err(Misfire::Useless(&flags::CREATED, true, &flags::TIME));
|
Err(Misfire::Useless(&flags::CREATED, true, &flags::TIME))
|
||||||
}
|
}
|
||||||
else if accessed {
|
else if accessed {
|
||||||
return Err(Misfire::Useless(&flags::ACCESSED, true, &flags::TIME));
|
Err(Misfire::Useless(&flags::ACCESSED, true, &flags::TIME))
|
||||||
}
|
}
|
||||||
|
else if word == "mod" || word == "modified" {
|
||||||
if word == "mod" || word == "modified" {
|
|
||||||
Ok(TimeTypes { accessed: false, modified: true, created: false })
|
Ok(TimeTypes { accessed: false, modified: true, created: false })
|
||||||
}
|
}
|
||||||
else if word == "acc" || word == "accessed" {
|
else if word == "acc" || word == "accessed" {
|
||||||
|
Loading…
Reference in New Issue
Block a user