]> git.seodisparate.com - mpd_info_screen/commitdiff
Remove unnecessary call to "ok()" on Result
authorStephen Seo <seo.disparate@gmail.com>
Thu, 13 Jan 2022 08:26:00 +0000 (17:26 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 13 Jan 2022 08:26:00 +0000 (17:26 +0900)
src/mpd_handler.rs

index 8770c9b5d02b28081d00d7bf3f3183fe2ec90676..610b10367e7500aa5549249052d20dda6c6768b5 100644 (file)
@@ -386,8 +386,8 @@ impl MPDHandler {
 
         'main: loop {
             if !self.is_reading_picture()
-                || (!self.is_authenticated().ok().unwrap_or(false)
-                    && !self.failed_to_authenticate().ok().unwrap_or(false))
+                || (!self.is_authenticated().unwrap_or(false)
+                    && !self.failed_to_authenticate().unwrap_or(false))
             {
                 thread::sleep(SLEEP_DURATION);
                 if let Ok(write_handle) = self.state.try_write() {