From 7089bef0d3a0bf66bf4696ccd2ad82c4f858d830 Mon Sep 17 00:00:00 2001 From: Bilal Date: Tue, 21 Jul 2020 16:26:02 +0200 Subject: [PATCH] fix MR comments --- app/models/broadcast.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/broadcast.rb b/app/models/broadcast.rb index 2759933..d1f6943 100644 --- a/app/models/broadcast.rb +++ b/app/models/broadcast.rb @@ -31,9 +31,7 @@ class Broadcast < ApplicationRecord end def full_live_stream_playback_url - return stream_playback_url if full_live_stream_playback_uid.blank? - - "https://stream.mux.com/#{full_live_stream_playback_uid}.m3u8" + full_live_stream_playback_uid.blank? ? stream_playback_url : "https://stream.mux.com/#{full_live_stream_playback_uid}.m3u8" end def stream_server_url