yanglint REFACTOR setting of --make-implemented
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 3057366..40e4df8 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -568,12 +568,7 @@
break;
case 'i': /* --make-implemented */
- if (yo->ctx_options & LY_CTX_REF_IMPLEMENTED) {
- yo->ctx_options &= ~LY_CTX_REF_IMPLEMENTED;
- yo->ctx_options |= LY_CTX_ALL_IMPLEMENTED;
- } else {
- yo->ctx_options |= LY_CTX_REF_IMPLEMENTED;
- }
+ yo_opt_update_make_implemented(yo);
break;
case 'P': /* --schema-node */