From 5c5c4239d8b7948232870bd6d5f8d3a87c5f50d0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 8 Oct 2020 17:22:59 +0300 Subject: Fix warnings --- Juick/MessageFetcher.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/MessageFetcher.swift') diff --git a/Juick/MessageFetcher.swift b/Juick/MessageFetcher.swift index b478e9e..fd1f7f1 100644 --- a/Juick/MessageFetcher.swift +++ b/Juick/MessageFetcher.swift @@ -25,7 +25,7 @@ class MessageFetcher: ObservableObject { @Published var state: LoadableState = .loading init(url: String) { - guard let apiUrl = URL(string: url) else { + guard let _ = URL(string: url) else { state = .fetched(.failure(.error("Malformed API URL."))) return } -- cgit v1.2.3