summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/test_lsp.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
commita9a1d0a162ef6be57374519589c538205e65a7fc (patch)
tree1789441c8af84b396ca21892c332c0583abb9c48 /modules/gdscript/tests/test_lsp.h
parent1d101329c96460a8b00a8dec5ff8808a589ee505 (diff)
parenta0dbdcc3abbd3e6307c6e68d0e60f8c0fa31d576 (diff)
downloadredot-engine-a9a1d0a162ef6be57374519589c538205e65a7fc.tar.gz
Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
Diffstat (limited to 'modules/gdscript/tests/test_lsp.h')
-rw-r--r--modules/gdscript/tests/test_lsp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/tests/test_lsp.h b/modules/gdscript/tests/test_lsp.h
index 6192272f80..b85c727bc5 100644
--- a/modules/gdscript/tests/test_lsp.h
+++ b/modules/gdscript/tests/test_lsp.h
@@ -227,7 +227,7 @@ Vector<InlineTestData> read_tests(const String &p_path) {
if (InlineTestData::try_parse(lines, i, d)) {
if (!d.name.is_empty()) {
// Safety check: names must be unique.
- if (names.find(d.name) != -1) {
+ if (names.has(d.name)) {
FAIL(vformat("Duplicated name '%s' in '%s'. Names must be unique!", d.name, p_path));
}
names.append(d.name);