From 5367180613d8cf61f0debbd073d222bd9b8ad133 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Sun, 11 Jun 2023 23:30:21 +0800 Subject: [PATCH] perf: resolve reture type warning --- .../Utility/EZCategory/NSString/NSString+EZConvenience.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Easydict/Feature/Utility/EZCategory/NSString/NSString+EZConvenience.m b/Easydict/Feature/Utility/EZCategory/NSString/NSString+EZConvenience.m index f7fd4c6a7..3f7b4856a 100644 --- a/Easydict/Feature/Utility/EZCategory/NSString/NSString+EZConvenience.m +++ b/Easydict/Feature/Utility/EZCategory/NSString/NSString+EZConvenience.m @@ -91,7 +91,8 @@ - (void)copyAndShowToast:(BOOL)showToast { /// Check if the string is a valid URL, must has scheme, https://www.google.com - (BOOL)isURL { NSURL *URL = [self detectLink]; - return URL; + BOOL isURL = URL != nil; + return isURL; } /// Check if the string is a valid URL, must has scheme, https://www.google.com