From 0ca5d02d86ff6d1897eb28315963897e7351e939 Mon Sep 17 00:00:00 2001 From: robinfriedli Date: Sat, 27 Jul 2019 22:58:48 +0200 Subject: [PATCH] update redundant HollowYouTubeVideo constructor --- .../botify/audio/youtube/HollowYouTubeVideo.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/robinfriedli/botify/audio/youtube/HollowYouTubeVideo.java b/src/main/java/net/robinfriedli/botify/audio/youtube/HollowYouTubeVideo.java index 86fa4b97..75b56ba6 100644 --- a/src/main/java/net/robinfriedli/botify/audio/youtube/HollowYouTubeVideo.java +++ b/src/main/java/net/robinfriedli/botify/audio/youtube/HollowYouTubeVideo.java @@ -27,11 +27,7 @@ public class HollowYouTubeVideo extends AbstractSoftCachedPlayable implements Yo private boolean canceled = false; public HollowYouTubeVideo(YouTubeService youTubeService) { - this.youTubeService = youTubeService; - this.title = new CompletableFuture<>(); - this.id = new CompletableFuture<>(); - this.duration = new CompletableFuture<>(); - this.redirectedSpotifyTrack = null; + this(youTubeService, null); } public HollowYouTubeVideo(YouTubeService youTubeService, @Nullable Track redirectedSpotifyTrack) {