Skip to content

Commit

Permalink
pvs/v547: remove useless ternary for string size
Browse files Browse the repository at this point in the history
  • Loading branch information
janlazo committed Nov 8, 2020
1 parent 5caaaca commit 09c46b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/api/vim.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ ArrayOf(String) nvim_get_runtime_file(String name, Boolean all, Error *err)
}

int flags = DIP_START | (all ? DIP_ALL : 0);
do_in_runtimepath(name.size ? (char_u *)name.data : NULL,
do_in_runtimepath((char_u *)name.data,
flags, find_runtime_cb, &rv);
return rv;
}
Expand Down

0 comments on commit 09c46b6

Please sign in to comment.