Skip to content

Commit

Permalink
trimmed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hilfazer committed Jul 29, 2021
1 parent 1248bb5 commit 73c1c01
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/quentincaffeino/callback/src/Callback.gd
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ func call(argv = []):

elif self._type == Utils.Type.METHOD:
return self._target.callv(self._name, argv)

print(errors["qc.callback.call.unknown_type"] % [ self._target, self._name ])
4 changes: 2 additions & 2 deletions addons/quentincaffeino/callback/src/CallbackBuilder.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Utils = preload("./Utils.gd")
const Callback = preload("./Callback.gd")
const FuncRefCallback = preload("./FuncRefCallback.gd")
const errors = preload("../assets/translations/errors.en.gd").messages


# @var Reference
var _target
Expand Down Expand Up @@ -83,7 +83,7 @@ func build():
print(errors["qc.callback.canCreate.second_arg"] % str(typeof(self._name)))
return null

if not self._type or self._type == Utils.Type.UNKNOWN:
if not self._type or self._type == Utils.Type.UNKNOWN:
self._type = Utils.get_type(self._target, self._name)
if self._type == Utils.Type.UNKNOWN:
print(errors["qc.callback.target_missing_mv"] % [ self._target, self._name ])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func autocomplete(command_name):
while commands.length:
for command in commands.get_value_iterator():
var cmd_name = command.get_name()

if letter_i >= len(cmd_name):
return autocomplete_result_str

Expand Down
2 changes: 1 addition & 1 deletion addons/quentincaffeino/console/src/ConsoleLine.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func _input(e):
# Don't process input if console is not visible
if !is_visible_in_tree():
return

# Show next line in history
if Input.is_action_just_pressed(DefaultActions.CONSOLE_HISTORY_UP):
self._current_command = Console.History.current()
Expand Down
2 changes: 1 addition & 1 deletion addons/quentincaffeino/regexlib/src/RegExLib.gd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static func split(pattern, subject):
for rematch in matches:
result.append(subject.substr(beginning, rematch.get_start() - beginning))
beginning = rematch.get_end()

var lastMatch = matches.pop_back()
result.append(subject.substr(lastMatch.get_end(), subject.length()))

Expand Down

0 comments on commit 73c1c01

Please sign in to comment.