Skip to content

Commit

Permalink
fix: linter complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
importRyan committed Nov 7, 2024
1 parent 10ae4a0 commit 4757952
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,8 @@ - (NSString*)textInRange:(UITextRange*)range {
@"Expected a FlutterTextRange for range (got %@).", [range class]);
NSRange textRange = ((FlutterTextRange*)range).range;
if (textRange.location == NSNotFound) {
/// Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion against NSNotFound.
/// Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion
/// against NSNotFound.
return nil;
}
// Sanitize the range to prevent going out of bounds.
Expand Down

0 comments on commit 4757952

Please sign in to comment.