diff --git a/src/song.rs b/src/song.rs index 64650ab..e3657da 100644 --- a/src/song.rs +++ b/src/song.rs @@ -104,10 +104,10 @@ impl Song { pub fn song_path(&self) -> Result { if self.directory.is_empty() { - Err(std::io::Error::new( + return Err(std::io::Error::new( std::io::ErrorKind::Other, "Directory does not exist", - )) + )); } let directory = &self.directory;