Skip to content

Commit

Permalink
Fix bad merge...
Browse files Browse the repository at this point in the history
  • Loading branch information
simon987 committed Jul 16, 2020
1 parent 5cc1fa8 commit 7b9fa4c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/io/serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,6 @@ void read_index_bin(const char *path, const char *index_id, index_func func) {
}
dyn_buffer_write_char(&buf, '\0');

const char *tags_string = g_hash_table_lookup(IndexCtx.tags, buf.buf);
if (tags_string != NULL) {
cJSON *tags_arr = cJSON_Parse(tags_string);
cJSON_AddItemToObject(document, "tag", tags_arr);
}

if (IndexCtx.tags != NULL) {
const char *tags_string = g_hash_table_lookup(IndexCtx.tags, buf.buf);
if (tags_string != NULL) {
Expand Down

0 comments on commit 7b9fa4c

Please sign in to comment.