Permalink
Browse files

Small refactoring.

  • Loading branch information...
1 parent 3203660 commit e48b8caa978344b79bf915d03642d5f9ef05ad61 @psychs psychs committed May 9, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/TwitterText.m
View
@@ -666,7 +666,7 @@ + (int)remainingCharacterCount:(NSString*)text httpURLLength:(int)httpURLLength
}
int len = string.length;
- int charCount = len;
+ int charCount = len + urlLengthOffset;
if (len > 0) {
// Adjust count for non-BMP characters
@@ -686,8 +686,6 @@ + (int)remainingCharacterCount:(NSString*)text httpURLLength:(int)httpURLLength
}
}
}
-
- charCount += urlLengthOffset;
return MaxTweetLength - charCount;
}

0 comments on commit e48b8ca

Please sign in to comment.