Skip to content

Commit 49e42a3

Browse files
committed
Include progname only if non-empty
1 parent a214fc4 commit 49e42a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/debug.cr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ module Debug
104104
%str << " (" << typeof(%val).to_s.colorize(%colors[:type]) << ')'
105105
end
106106

107-
%emitter.emit(%ret, progname: {{ progname }})
107+
if %progname = {{ progname }}.presence
108+
%emitter.emit(%ret, progname: %progname)
109+
else
110+
%emitter.emit(%ret)
111+
end
108112
end
109113
{% end %}
110114
end

0 commit comments

Comments
 (0)