hash table REFACTOR use return value
diff --git a/src/hash_table.c b/src/hash_table.c
index fd88e3d..3d8d5f2 100644
--- a/src/hash_table.c
+++ b/src/hash_table.c
@@ -404,7 +404,8 @@
             ret = lyht_resize(ht, 1, check);
             /* if hash_table was resized, we need to find new matching value */
             if ((ret == LY_SUCCESS) && match_p) {
-                lyht_find(ht, val_p, hash, match_p);
+                ret = lyht_find(ht, val_p, hash, match_p);
+                assert(!ret);
             }
 
             if (resize_val_equal) {