Skip to content

Commit

Permalink
perf: resolve reture type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jun 11, 2023
1 parent b9745a4 commit 5367180
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5367180

Please sign in to comment.