tree DOC minor improvements
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c
index 4ae8b3f..e1eadf8 100644
--- a/src/tree_data_helpers.c
+++ b/src/tree_data_helpers.c
@@ -259,10 +259,8 @@
 API const char *
 lyd_value_get_canonical(const struct ly_ctx *ctx, const struct lyd_value *value)
 {
-    return value->_canonical
-               ? value->_canonical
-               : (const char *)value->realtype->plugin->print(
-                     ctx, value, LY_VALUE_CANON, NULL, NULL, NULL);
+    return value->_canonical ? value->_canonical :
+           (const char *)value->realtype->plugin->print(ctx, value, LY_VALUE_CANON, NULL, NULL, NULL);
 }
 
 API LY_ERR