Skip to content

Commit

Permalink
[*] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Apr 22, 2024
1 parent bce05b3 commit de347a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/icons_patcher/utils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static func patch_icon_dir(dir_path: String, rx: RegEx, replacement: String) ->
var patched_icons: PackedStringArray = []
dir.list_dir_begin()
var elem: String = dir.get_next()
while (not elem.is_empty()):
while elem != "":
if dir.current_is_dir():
patched_icons.append_array(patch_icon_dir(dir_path + "/" + elem, rx, replacement))
elif elem.get_extension() == "svg":
Expand Down
2 changes: 1 addition & 1 deletion addons/licenses/internal/toolbar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func _create_plugin_menu_items() -> void:
dir.list_dir_begin()
var elem: String = dir.get_next()
var idx: int = 0
while (not elem.is_empty()):
while elem != "":
if dir.current_is_dir():
var path: String = "res://addons/".path_join(elem).path_join("/plugin.cfg")
var cfg: Dictionary = self._get_plugin_config(path)
Expand Down

0 comments on commit de347a8

Please sign in to comment.