printer lyb REFACTOR return value check
diff --git a/src/printer_lyb.c b/src/printer_lyb.c
index b5d9a89..b330e4c 100644
--- a/src/printer_lyb.c
+++ b/src/printer_lyb.c
@@ -461,7 +461,7 @@
     if (mod) {
         LY_CHECK_RET(lyb_write_string(mod->name, 0, sizeof(uint16_t), out, lybctx));
     } else {
-        lyb_write_number(0, 2, out, lybctx);
+        LY_CHECK_RET(lyb_write_number(0, 2, out, lybctx));
         return LY_SUCCESS;
     }