mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
refactor: PVS/V501: removed duplicate sub-expression 'chunk.size > 2'
This commit is contained in:
parent
d628e4250f
commit
518f0d3d47
@ -1603,8 +1603,7 @@ VirtText parse_virt_text(Array chunks, Error *err, int *width)
|
||||
}
|
||||
Array chunk = chunks.items[i].data.array;
|
||||
if (chunk.size == 0 || chunk.size > 2
|
||||
|| chunk.items[0].type != kObjectTypeString
|
||||
|| chunk.size > 2) {
|
||||
|| chunk.items[0].type != kObjectTypeString) {
|
||||
api_set_error(err, kErrorTypeValidation,
|
||||
"Chunk is not an array with one or two strings");
|
||||
goto free_exit;
|
||||
|
Loading…
Reference in New Issue
Block a user