mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Some refactorings - Updated editorconfig, removed some unused variables and parameters, updated some old thorwaway variable code, some general cleanup
This commit is contained in:
@@ -337,7 +337,7 @@ public sealed partial class Music : NadekoModule<IMusicService>
|
||||
|
||||
var videos = await _service.SearchVideosAsync(query);
|
||||
|
||||
if (videos is null || videos.Count == 0)
|
||||
if (videos.Count == 0)
|
||||
{
|
||||
await ReplyErrorLocalizedAsync(strs.song_not_found);
|
||||
return;
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using Ayu.Discord.Voice;
|
||||
using NadekoBot.Common.ModuleBehaviors;
|
||||
using NadekoBot.Services.Database.Models;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
@@ -291,10 +290,10 @@ public sealed class MusicPlayer : IMusicPlayer
|
||||
|
||||
private void HandleQueuePostTrack()
|
||||
{
|
||||
if (this.forceIndex is { } forceIndex)
|
||||
if (forceIndex is { } index)
|
||||
{
|
||||
_queue.SetIndex(forceIndex);
|
||||
this.forceIndex = null;
|
||||
_queue.SetIndex(index);
|
||||
forceIndex = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user