You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace find with contains/has where applicable
* Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
This commit is contained in:
@@ -1638,7 +1638,7 @@ Error DocTools::save_classes(const String &p_default_path, const HashMap<String,
|
||||
String schema_path;
|
||||
if (p_use_relative_schema) {
|
||||
// Modules are nested deep, so change the path to reference the same schema everywhere.
|
||||
schema_path = save_path.find("modules/") != -1 ? "../../../doc/class.xsd" : "../class.xsd";
|
||||
schema_path = save_path.contains("modules/") ? "../../../doc/class.xsd" : "../class.xsd";
|
||||
} else {
|
||||
schema_path = "https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user