Minor refactoring

This commit is contained in:
Stephen Seo 2022-01-06 18:23:50 +09:00
parent f98dc899f1
commit cef1ae1aee

View file

@ -114,7 +114,7 @@ impl MPDDisplay {
self.opts.password.clone().map_or(String::new(), |s| s), self.opts.password.clone().map_or(String::new(), |s| s),
self.opts.log_level, self.opts.log_level,
) )
.map_or_else(|_| None, Some); .ok();
if self.mpd_handler.is_some() { if self.mpd_handler.is_some() {
self.is_initialized = true; self.is_initialized = true;
loop { loop {