Skip to content

Commit

Permalink
Fix not needed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Jul 24, 2024
1 parent 4a49b2a commit edbac83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AzzyBot-Next.Bot/Commands/MusicStreamingCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ public async Task PlayAsync
_logger.CommandRequested(nameof(PlayAsync), context.User.GlobalName);

AzuraCastEntity azura = await _dbActions.GetAzuraCastAsync(context.Guild.Id, false, false, true) ?? throw new InvalidOperationException("AzuraCast is not set up for this server.");
AzuraCastStationEntity stationEntity = azura.Stations.FirstOrDefault(x => x.StationId == station) ?? throw new InvalidOperationException("Station not found.");
try
{
AzuraNowPlayingDataRecord nowPlaying = await _azuraCast.GetNowPlayingAsync(new(Crypto.Decrypt(azura.BaseUrl)), station);
await _azuraCast.GetNowPlayingAsync(new(Crypto.Decrypt(azura.BaseUrl)), station);
}
catch (HttpRequestException)
{
Expand Down

0 comments on commit edbac83

Please sign in to comment.