Skip to content

Commit

Permalink
Fix a random suggestion from a style checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Holden Karau authored and kimchy committed Mar 29, 2012
1 parent 3df935e commit d9ff8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/elasticsearch/common/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ public static boolean pathEquals(String path1, String path2) {
*/
public static Locale parseLocaleString(String localeString) {
String[] parts = tokenizeToStringArray(localeString, "_ ", false, false);
String language = (parts.length > 0 ? parts[0] : "");
String language = (parts.length != 0 ? parts[0] : "");
String country = (parts.length > 1 ? parts[1] : "");
String variant = "";
if (parts.length >= 2) {
Expand Down

0 comments on commit d9ff8ba

Please sign in to comment.