Skip to content

Commit

Permalink
Remove needless condition
Browse files Browse the repository at this point in the history
grn_config_cursor_next() returns boolean value.
  • Loading branch information
kou committed Mar 5, 2016
1 parent c9665a0 commit ec3375a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/groonga/rb-grn-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ rb_grn_config_each (VALUE self)
context = rb_grn_context_ensure(&rb_context);

cursor = grn_config_cursor_open(context);
while (grn_config_cursor_next(context, cursor) == GRN_TRUE) {
while (grn_config_cursor_next(context, cursor)) {
const char *key;
uint32_t key_size;
const char *value;
Expand Down

0 comments on commit ec3375a

Please sign in to comment.