[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.4.3-182-gc374038



The following commit has been merged in the master branch:
commit c3740389823d61236a738aeae0c0e90adab2e3b9
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jan 26 18:22:13 2011 +0100

    Simplify return in Lintian::Command::Simple

diff --git a/lib/Lintian/Command/Simple.pm b/lib/Lintian/Command/Simple.pm
index e17fa23..fbacdaf 100644
--- a/lib/Lintian/Command/Simple.pm
+++ b/lib/Lintian/Command/Simple.pm
@@ -224,22 +224,14 @@ sub wait {
 
 	# count the number of members and reset the internal hash iterator
 	if (scalar keys %$jobs == 0) {
-	    if (wantarray) {
-		return ();
-	    } else {
-		return;
-	    }
+            return;
 	}
 
 	$reaped_pid = CORE::wait();
 	$reaped_status = $?;
 
 	if ($reaped_pid == -1) {
-	    if (wantarray) {
-		return ();
-	    } else {
-		return;
-	    }
+            return;
 	}
 
 	while (my ($k, $cmd) = each %$jobs) {

-- 
Debian package checker


Reply to: