Skip to content

Commit

Permalink
add continue for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdeng committed Sep 2, 2014
1 parent d5639df commit ba778b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,11 @@ private boolean hasMissingRequiredFieldInGroupType(GroupType requested, GroupTyp
Type requestedType = requested.getType(field.getName());
// if a field is in requested schema and the type of it is a group type, then do recursive check
if (!field.isPrimitive()) {
if (hasMissingRequiredFieldInGroupType(requestedType.asGroupType(), field.asGroupType()))
if (hasMissingRequiredFieldInGroupType(requestedType.asGroupType(), field.asGroupType())) {
return true;
} else {
continue;// check next field
}
}
} else {
if (field.getRepetition() == Type.Repetition.REQUIRED) {
Expand Down

0 comments on commit ba778b9

Please sign in to comment.