Removed unneeded returns
This commit is contained in:
parent
245519634c
commit
ebea771424
1 changed files with 10 additions and 10 deletions
20
src/utils.rs
20
src/utils.rs
|
@ -10,11 +10,11 @@ pub fn is_song(path: &Path) -> bool {
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
match extension {
|
match extension {
|
||||||
"mp3" => return true,
|
"mp3" => true,
|
||||||
"ogg" => return true,
|
"ogg" => true,
|
||||||
"m4a" => return true,
|
"m4a" => true,
|
||||||
"flac" => return true,
|
"flac" => true,
|
||||||
_ => return false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@ pub fn is_image(path: &Path) -> bool {
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
match extension {
|
match extension {
|
||||||
"png" => return true,
|
"png" => true,
|
||||||
"gif" => return true,
|
"gif" => true,
|
||||||
"jpg" => return true,
|
"jpg" => true,
|
||||||
"bmp" => return true,
|
"bmp" => true,
|
||||||
_ => return false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue