Commit 8be7419d authored by Ian Jackson's avatar Ian Jackson

Dgit.pm: printdebug: Refactor slightly

This will make the next commits easier.  NFC.
Signed-off-by: Ian Jackson's avatarIan Jackson <ijackson@chiark.greenend.org.uk>
parent 55b32c71
......@@ -159,8 +159,8 @@ sub enabledebuglevel ($) {
}
sub printdebug {
print DEBUG $debugprefix, @_ or die $!
if $debuglevel >= $printdebug_when_debuglevel;
return unless $debuglevel >= $printdebug_when_debuglevel;
print DEBUG $debugprefix, @_ or die $!;
}
sub messagequote ($) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment