Skip to content

Commit dcbbc00

Browse files
committed
printer json UPDATE minor improvements
1 parent cba7d80 commit dcbbc00

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/printer_json.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ node_prefix(const struct lyd_node *node, const struct lysc_node *snode, const ch
161161

162162
*mod_name = NULL;
163163

164-
if (!node && !snode) {
165-
return;
166-
}
167-
168164
if (snode) {
169165
*mod_name = snode->module->name;
170166
if (data_dict) {
@@ -202,8 +198,9 @@ node_prefix(const struct lyd_node *node, const struct lysc_node *snode, const ch
202198
*
203199
* Accepts both regulard a well as opaq nodes.
204200
*
205-
* @param[in] node1 The first node to compare.
206-
* @param[in] node2 The second node to compare.
201+
* @param[in] node1 First data node to compare.
202+
* @param[in] snode1 First schema node to compare, if there is no @p node1.
203+
* @param[in] node2 Second data node to compare.
207204
* @return 0 in case the nodes' modules are the same
208205
* @return 1 in case the nodes belongs to different modules
209206
*/

0 commit comments

Comments
 (0)