mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
cleanup: use null over undefined (#2810)
This commit is contained in:
@@ -66,13 +66,13 @@ class MessageAttachment {
|
||||
* The height of this attachment (if an image or video)
|
||||
* @type {?number}
|
||||
*/
|
||||
this.height = data.height;
|
||||
this.height = typeof data.height !== 'undefined' ? data.height : null;
|
||||
|
||||
/**
|
||||
* The width of this attachment (if an image or video)
|
||||
* @type {?number}
|
||||
*/
|
||||
this.width = data.width;
|
||||
this.width = typeof data.width !== 'undefined' ? data.width : null;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
||||
Reference in New Issue
Block a user