Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 1e3847a893f569a30676f05fd21b5603f2e8f559 1 parent c96fa48
@tekezo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core/server/Classes/InputSource.m
View
2  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];
Please sign in to comment.
Something went wrong with that request. Please try again.