remove unused conditional branch

It has no effect after the change c4524da.

Bug reported by the clang static analyzer.

Description: Value stored to 'value' is never read
File: jq/src/util.c
Line: 439
This commit is contained in:
Yoichi Nakayama authored and Nico Williams committed 2020-01-10 12:01:08 -06:00
1 parent 087100183c
commit 503fae5dc9
1 file changed
-2
-2
View File
@@ -429,8 +429,6 @@ jv jq_util_input_next_input(jq_util_input_state *state) {
} else {
if (jv_parser_remaining(state->parser) == 0) {
is_last = jq_util_input_read_more(state);
if (is_last && state->buf_valid_len == 0)
value = jv_invalid();
jv_parser_set_buf(state->parser, state->buf, state->buf_valid_len, !is_last);
}
value = jv_parser_next(state->parser);