Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DubyaDude committed Dec 17, 2022
1 parent 4cbdb06 commit fefa54c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WindowsMediaController/Main.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using Windows.Media.Control;
Expand Down Expand Up @@ -129,7 +128,7 @@ private void CurrentSessionChanged(GlobalSystemMediaTransportControlsSessionMana
private MediaSession GetFocusedSession(GlobalSystemMediaTransportControlsSessionManager sender)
{
var currentSession = sender.GetCurrentSession();

MediaSession currentMediaSession = null;
if (currentSession != null && _CurrentMediaSessions.TryGetValue(currentSession.SourceAppUserModelId, out MediaSession mediaSession))
{
Expand Down

0 comments on commit fefa54c

Please sign in to comment.