Navigation Menu

Skip to content

Commit

Permalink
Remove needless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 19, 2015
1 parent 39e07b1 commit 3635a6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/expr.c
Expand Up @@ -4638,7 +4638,7 @@ scan_info_build_find_index_column_index(grn_ctx *ctx,
uint32_t offset = 0;
grn_obj *index;
int sid = 0;
int32_t weight = 0;
int32_t weight;

index = ec->value;
if (n_rest_codes >= 2 &&
Expand All @@ -4653,9 +4653,7 @@ scan_info_build_find_index_column_index(grn_ctx *ctx,
}
offset = 2;
}
if ((n_rest_codes - offset) >= 1) {
weight = get_weight(ctx, ec + offset);
}
weight = get_weight(ctx, ec + offset);
scan_info_put_index(ctx, si, index, sid, weight);

return offset;
Expand Down

0 comments on commit 3635a6a

Please sign in to comment.