Skip to content

Commit 7f793d3

Browse files
committed
Remove unneeded conditional.
1 parent 506640e commit 7f793d3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/pyld/jsonld.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,10 @@ def prepend_base(base, iri):
506506

507507
# append relative path to the end of the last directory from
508508
# base
509-
if rel.path != '':
510-
path = path[0:path.rfind('/') + 1]
511-
if len(path) > 0 and not path.endswith('/'):
512-
path += '/'
513-
path += rel.path
509+
path = path[0:path.rfind('/') + 1]
510+
if len(path) > 0 and not path.endswith('/'):
511+
path += '/'
512+
path += rel.path
514513

515514
transform['path'] = path
516515

0 commit comments

Comments
 (0)