Skip to content

Commit

Permalink
refactor: minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Dec 14, 2023
1 parent 43d7a1e commit cc45725
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions handler/plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ func (a sessionData) Check(b sessionData) bool {
return true
}
if a.progress != b.progress {
if a.status == sessionPlaying {
return false
}
return true
return a.status != sessionPlaying
}
return false
}
Expand Down

0 comments on commit cc45725

Please # to comment.