[base] minor
diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh
index ee3aad9..d8b5acc 100644
--- a/src/hb-ot-layout-base-table.hh
+++ b/src/hb-ot-layout-base-table.hh
@@ -351,10 +351,8 @@
const BaseScript &get_base_script (hb_tag_t script) const
{
const BaseScriptRecord *record = &baseScriptRecords.bsearch (script);
- /* TODO: Or client should handle fallback? */
if (!record->has_data ()) record = &baseScriptRecords.bsearch (HB_TAG ('D','F','L','T'));
-
- return record ? record->get_base_script (this) : Null (BaseScript);
+ return record->has_data () ? record->get_base_script (this) : Null (BaseScript);
}
bool sanitize (hb_sanitize_context_t *c) const