Remove unnecessary call to "ok()" on Result

This commit is contained in:
Stephen Seo 2022-01-13 17:26:00 +09:00
parent e12104aa20
commit 98be10682e

View 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() {