From: Guenter Knauf Date: Mon, 12 Apr 2010 20:57:48 +0000 (+0200) Subject: removed obsolete var in gitpull() function X-Git-Tag: curl-7_20_1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6b7471f4023bc8cb072e659855d91741b4485c6;p=curl removed obsolete var in gitpull() function no need to create a var - lets just return the status var itself. --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index c55dcaeef..171110bf0 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -378,17 +378,14 @@ chdir $CURLDIR; sub gitpull() { # update quietly to the latest git if($nogitpull) { - logit "Skipping git pull (--nogitpull)"; + logit "skipping git pull (--nogitpull)"; return 1; } else { logit "run git pull"; system("git pull 2>&1"); + return $?; } - - my $stat=$?; - - return $stat; } # Do the git thing, or not...