]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Common.pm
fix use of || vs. // in Debbugs::Common
[debbugs.git] / 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;