diff --git a/TwitchDownloaderCore/Options/ChatRenderOptions.cs b/TwitchDownloaderCore/Options/ChatRenderOptions.cs index eb1456c7..2025d073 100644 --- a/TwitchDownloaderCore/Options/ChatRenderOptions.cs +++ b/TwitchDownloaderCore/Options/ChatRenderOptions.cs @@ -31,16 +31,7 @@ public class ChatRenderOptions public bool Timestamp { get; set; } public int Framerate { get; set; } public double UpdateRate { get; set; } - public int UpdateFrame - { - get - { - if (UpdateRate == 0) - return 1; - else - return (int)(UpdateRate * Framerate); - } - } + public int UpdateFrame => Math.Max(1, (int)(UpdateRate * Framerate)); public bool GenerateMask { get; set; } public string MaskFile {