From ed69780d523d8df096083e9085450836d52125c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Tue, 21 Nov 2023 01:13:01 +0100 Subject: [PATCH] removed superfluous braces --- Shared/Player/Video Details/VideoDescription.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Player/Video Details/VideoDescription.swift b/Shared/Player/Video Details/VideoDescription.swift index 56bf9450..1bd12c08 100644 --- a/Shared/Player/Video Details/VideoDescription.swift +++ b/Shared/Player/Video Details/VideoDescription.swift @@ -91,7 +91,7 @@ struct VideoDescription: View { var attrString = AttributedString(description) let words = description.unicodeScalars.split(whereSeparator: separators.contains).map(String.init) words.forEach { word in - if (word.hasPrefix("https://") || word.hasPrefix("http://")), let url = URL(string: String(word)) { + if word.hasPrefix("https://") || word.hasPrefix("http://"), let url = URL(string: String(word)) { if let range = attrString.range(of: word) { attrString[range].link = url }