Permalink
Browse files

cleanup

  • Loading branch information...
1 parent c96fa48 commit 1e3847a893f569a30676f05fd21b5603f2e8f559 @tekezo committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/server/Classes/InputSource.m
@@ -45,7 +45,7 @@ + (NSString*) getBcp47:(TISInputSourceRef)source
}
NSArray* languages = TISGetInputSourceProperty(source, kTISPropertyInputSourceLanguages);
- if (languages && [languages count] > 0) {
+ if ([languages count] > 0) {
// U.S. InputSource has many languages (en, de, fr, ...),
// so we check the first language only to detect real InputSource for French, German, etc.
NSString* lang = [languages objectAtIndex:0];

0 comments on commit 1e3847a

Please sign in to comment.