aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri_utils.h')
-rw-r--r--src/uri_utils.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/uri_utils.h b/src/uri_utils.h
index 7fa87463..d7c90b12 100644
--- a/src/uri_utils.h
+++ b/src/uri_utils.h
@@ -41,11 +41,8 @@ uri_path_len(const SerdURI* uri)
static inline uint8_t
uri_path_at(const SerdURI* uri, size_t i)
{
- if (i < uri->path_base.len) {
- return uri->path_base.buf[i];
- } else {
- return uri->path.buf[i - uri->path_base.len];
- }
+ return (i < uri->path_base.len) ? uri->path_base.buf[i]
+ : uri->path.buf[i - uri->path_base.len];
}
/**