]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix use of || vs. // in Debbugs::Common
authorDon Armstrong <don@donarmstrong.com>
Thu, 23 Jul 2009 16:35:24 +0000 (18:35 +0200)
committerDon Armstrong <don@donarmstrong.com>
Thu, 23 Jul 2009 16:35:24 +0000 (18:35 +0200)
Debbugs/Common.pm

index d8eaf40b2b336c808ebb12327e8aa25e4df34c3d..ecd46076eafa1a109250f7e19b5e0e7e654f033f 100644 (file)
@@ -635,10 +635,10 @@ If debug is non-zero, the code at which the failure occured is output.
 sub cleanup_eval_fail {
     my ($error,$debug) = @_;
     if (not defined $error or not @_) {
-       $error = $@ || 'unknown reason';
+       $error = $@ // 'unknown reason';
     }
     if (@_ <= 1) {
-       $debug = $DEBUG || 0;
+       $debug = $DEBUG // 0;
     }
     $debug = 0 if not defined $debug;