diff --git a/ffplayout-api/src/utils/playlist.rs b/ffplayout-api/src/utils/playlist.rs
index 732cae3d..55022843 100644
--- a/ffplayout-api/src/utils/playlist.rs
+++ b/ffplayout-api/src/utils/playlist.rs
@@ -130,12 +130,12 @@ pub async fn delete_playlist(
if playlist_path.is_file() {
match fs::remove_file(playlist_path) {
- Ok(_) => return Ok(format!("Delete playlist from {date} success!")),
+ Ok(_) => Ok(format!("Delete playlist from {date} success!")),
Err(e) => {
error!("{e}");
- return Err(ServiceError::InternalServerError);
+ Err(ServiceError::InternalServerError)
}
- };
+ }
} else {
Ok(format!("No playlist to delete on: {date}"))
}
diff --git a/lib/src/utils/mod.rs b/lib/src/utils/mod.rs
index 857fda1b..e8012be7 100644
--- a/lib/src/utils/mod.rs
+++ b/lib/src/utils/mod.rs
@@ -1009,7 +1009,7 @@ pub mod mock_time {
use std::cell::RefCell;
thread_local! {
- static DATE_TIME_DIFF: RefCell