Skip to content

Commit

Permalink
common/libkvs: Cleanup treeobj_deep_copy()
Browse files Browse the repository at this point in the history
Eliminate unnecessary if check.

squash to : common/libkvs: fix treeobj_copy & rename it
  • Loading branch information
chu11 committed Oct 31, 2017
1 parent d70d535 commit 4832572
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/libkvs/treeobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,7 @@ json_t *treeobj_deep_copy (json_t *obj)
return NULL;
}

if (!(cpy = json_deep_copy (obj)))
return NULL;
return cpy;
return json_deep_copy (obj);
}

int treeobj_append_blobref (json_t *obj, const char *blobref)
Expand Down

0 comments on commit 4832572

Please sign in to comment.