Skip to content

Commit b0ec300

Browse files
eclipse-platform-botruspl-afed
authored andcommitted
Perform clean code of runtime/bundles/org.eclipse.core.contenttype
1 parent efb36c4 commit b0ec300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/internal/content/ContentTypeCatalog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ Optional<IContentType> findFirstContentTypeFor(ContentTypeMatcher matcher, final
426426
ISelectionPolicy policy = matcher.getPolicy();
427427
IContentType[] selected = concat(internalFindContentTypesSorted(matcher, fileName, policyConstantGeneralIsBetter, policy == null));
428428
// give the policy a chance to change the results
429-
if (policy != null)
429+
if (policy != null) {
430430
selected = applyPolicy(policy, selected, true, false);
431+
}
431432
return selected.length != 0 ? of(selected[0]) : empty();
432433
}
433434

0 commit comments

Comments
 (0)