aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/unicode/prop/uprop_get_tc.c5
-rw-r--r--lib/unicode/prop/uprop_get_uc.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/unicode/prop/uprop_get_tc.c b/lib/unicode/prop/uprop_get_tc.c
index 3c957cf..c4c8070 100644
--- a/lib/unicode/prop/uprop_get_tc.c
+++ b/lib/unicode/prop/uprop_get_tc.c
@@ -70,8 +70,5 @@ uprop_get_tc(rune ch, struct tcctx ctx)
return M();
rune CH = uprop_get_stc(ch);
- if (ch != CH)
- return M(CH);
-
- return mlib_lookup_kv(ch);
+ return ch != CH ? M(CH) : mlib_lookup_kv(ch);
}
diff --git a/lib/unicode/prop/uprop_get_uc.c b/lib/unicode/prop/uprop_get_uc.c
index 724e034..c1ddf87 100644
--- a/lib/unicode/prop/uprop_get_uc.c
+++ b/lib/unicode/prop/uprop_get_uc.c
@@ -127,8 +127,5 @@ uprop_get_uc(rune ch, struct ucctx ctx)
return M();
rune CH = uprop_get_suc(ch);
- if (ch != CH)
- return M(CH);
-
- return mlib_lookup_kv(ch);
+ return ch != CH ? M(CH) : mlib_lookup_kv(ch);
}