diff options
author | David Robillard <d@drobilla.net> | 2020-08-11 17:31:21 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:06 -0500 |
commit | d71d5bf14845b552547905584954eab6b52ed18c (patch) | |
tree | 8cc96cce5df9afa4beaa894c18a9c585d00b9675 /src | |
parent | 40a83074705976ea59f0e1a5d06a4e5c7705472c (diff) | |
download | serd-d71d5bf14845b552547905584954eab6b52ed18c.tar.gz serd-d71d5bf14845b552547905584954eab6b52ed18c.tar.bz2 serd-d71d5bf14845b552547905584954eab6b52ed18c.zip |
Clean up Env tests and behaviour
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -184,15 +184,15 @@ serd_env_set_prefix(SerdEnv* env, serd_env_add(env, name, uri); } else if (!env->base_uri_node) { return SERD_ERR_BAD_ARG; - } else { - // Resolve relative URI and create a new node and URI for it - SerdNode* const abs_uri = serd_new_resolved_uri(uri, env->base_uri); - - // Set prefix to resolved (absolute) URI - serd_env_add(env, name, serd_node_string_view(abs_uri)); - serd_node_free(abs_uri); } + // Resolve relative URI and create a new node and URI for it + SerdNode* abs_uri = serd_new_resolved_uri(uri, env->base_uri); + + // Set prefix to resolved (absolute) URI + serd_env_add(env, name, serd_node_string_view(abs_uri)); + serd_node_free(abs_uri); + return SERD_SUCCESS; } |