Skip to content

Commit

Permalink
Delete a duplicate function
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Aug 14, 2023
1 parent 4734b25 commit 5f4493a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion fhirpathpy/engine/invocations/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def trim(ctx, coll):
def join(ctx, coll, separator=""):
stringValues = []
for n in coll:
d = util.valData(n)
d = util.get_data(n)
if isinstance(d, str):
stringValues.append(d)
else:
Expand Down
6 changes: 0 additions & 6 deletions fhirpathpy/engine/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,3 @@ def uniq(arr):
key = str(x)
ordered_dict[key] = x
return list(ordered_dict.values())


def valData(val):
# Returns the data value of the given parameter, which might be a ResourceNode.
# Otherwise, it returns the value that was passed in.
return val.data if isinstance(val, ResourceNode) else val

0 comments on commit 5f4493a

Please sign in to comment.