Permalink
Browse files

remove if(range)

  • Loading branch information...
1 parent 0ae55cd commit c124904769120a5b45dd3dd118808ec82ccd49c3 @r-plus committed May 7, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 SwipeShiftCaret.x
View
3 SwipeShiftCaret.x
@@ -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];
}
}

0 comments on commit c124904

Please sign in to comment.