mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
cleanup: fix deepscan issues (#3740)
* fix: don't double check if shards are auto. * fix: remove useless roles array. * fix: remove useless undefined checks. * fix: remove useless `this` binding * Apply suggestions from code review Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com> * Fix: Space's suggestion * Fix: time is always truthy * Check if it's an invalid date. Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
committed by
SpaceEEC
parent
929ff9ccd0
commit
b81f771007
@@ -73,10 +73,10 @@ class StreamDispatcher extends Writable {
|
||||
this._setSpeaking(0);
|
||||
});
|
||||
|
||||
if (typeof volume !== 'undefined') this.setVolume(volume);
|
||||
this.setVolume(volume);
|
||||
this.setBitrate(bitrate);
|
||||
if (typeof fec !== 'undefined') this.setFEC(fec);
|
||||
if (typeof plp !== 'undefined') this.setPLP(plp);
|
||||
if (typeof bitrate !== 'undefined') this.setBitrate(bitrate);
|
||||
|
||||
const streamError = (type, err) => {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user