From 60d7a9ff146ff3c137a99b82dd75fe8f57525938 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Mar 2012 05:55:27 +0000 Subject: Trim redundant case. git-svn-id: http://svn.drobilla.net/serd/trunk@335 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/uri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uri.c b/src/uri.c index b67116f9..26f8ae97 100644 --- a/src/uri.c +++ b/src/uri.c @@ -481,10 +481,8 @@ serd_uri_serialise_relative(const SerdURI* uri, len += sink("//", 2, stream); len += sink(uri->authority.buf, uri->authority.len, stream); } - if (uri->path.buf && uri->path_base.buf) { + if (uri->path.buf) { len += write_rel_path(sink, stream, &uri->path_base, &uri->path); - } else if (uri->path.buf) { - len += write_rel_path(sink, stream, NULL, &uri->path); } else { len += sink(uri->path_base.buf, uri->path_base.len, stream); } -- cgit v1.2.1