mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Better formatting for empty arguments
This commit is contained in:
parent
ca827a3c52
commit
5ad29f486f
2 changed files with 10 additions and 0 deletions
|
@ -29,6 +29,8 @@ module Spectator
|
|||
|
||||
# Constructs a string representation of the arguments.
|
||||
def to_s(io : IO) : Nil
|
||||
return io << "(no args)" if args.empty? && kwargs.empty?
|
||||
|
||||
io << '('
|
||||
|
||||
# Add the positional arguments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue