mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Remove unnecessary instantiation in _on_search_cond_text_submitted
As a static method is used it's not necessary to make an instance of the script. Just something i noticed. Doesn't affect functionality.
This commit is contained in:
parent
b901eab884
commit
d646308ba5
@ -391,8 +391,7 @@ func _on_search_cond_text_submitted(new_text : String):
|
||||
new_script.source_code = "static func can_show(res, index):\n\treturn " + new_text
|
||||
new_script.reload()
|
||||
|
||||
var new_script_instance = new_script.new()
|
||||
search_cond = new_script_instance
|
||||
search_cond = new_script
|
||||
refresh()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user