Fix logic typo.

This commit is contained in:
Jordan Petridis 2018-04-24 15:34:52 +03:00
parent a56a80db88
commit 734f85a517
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -115,9 +115,9 @@ impl ShowStack {
Ok(())
}
// Only update widget if it's podcast_id is equal to pid.
// Only update widget if its podcast_id is equal to pid.
pub fn update_widget_if_same(&mut self, pid: i32) -> Result<(), Error> {
if self.show.podcast_id() == Some(pid) {
if self.show.podcast_id() != Some(pid) {
debug!("Different widget. Early return");
return Ok(());
}