Skip to content

Commit

Permalink
remove if(range)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-plus committed May 7, 2012
1 parent 0ae55cd commit c124904
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SwipeShiftCaret.x
Expand Up @@ -230,8 +230,7 @@ static void DidEnterBackgroundNotificationReceived(CFNotificationCenterRef cente
if (!position)
continue;
UITextRange *range = [tv textRangeFromPosition:position toPosition:position];
if (range)
[tv setSelectedTextRange:range];
[tv setSelectedTextRange:range];
}
}

Expand Down

0 comments on commit c124904

Please sign in to comment.