code reactoring

This commit is contained in:
euzu
2024-03-26 12:34:57 +01:00
parent 970abcd18c
commit 7ee4a2fa5d
10 changed files with 68 additions and 38 deletions
+2 -5
View File
@@ -187,11 +187,8 @@ fn rename_playlist(playlist: &mut [PlaylistGroup], target: &ConfigTarget) -> Opt
macro_rules! apply_pattern {
($pattern:expr, $provider:expr, $processor:expr) => {{
match $pattern {
Some(ptrn) => {
ptrn.filter($provider, $processor);
},
_ => {}
if let Some(ptrn) = $pattern {
ptrn.filter($provider, $processor);
};
}};
}