Skip to content

Commit 30b75cf

Browse files
committed
UNICHARMAP: Remove comparison which is always false
Warning from LGTM: Comparison is always false because index <= 0 and 1 <= length. Signed-off-by: Stefan Weil <[email protected]>
1 parent 3ae765e commit 30b75cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccutil/unicharmap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool UNICHARMAP::contains(const char* const unichar_repr,
8383
if (unichar_repr == nullptr || *unichar_repr == '\0') return false;
8484
if (length <= 0 || length > UNICHAR_LEN) return false;
8585
int index = 0;
86-
if (index >= length || unichar_repr[index] == '\0') return false;
86+
if (unichar_repr[index] == '\0') return false;
8787
UNICHARMAP_NODE* current_nodes = nodes;
8888

8989
while (current_nodes != nullptr && index + 1 < length &&

0 commit comments

Comments
 (0)