]> granicus.if.org Git - curl/commitdiff
removed obsolete var in gitpull() function
authorGuenter Knauf <lists@gknw.net>
Mon, 12 Apr 2010 20:57:48 +0000 (22:57 +0200)
committerGuenter Knauf <lists@gknw.net>
Mon, 12 Apr 2010 20:57:48 +0000 (22:57 +0200)
no need to create a var - lets just return the status var itself.

tests/testcurl.pl

index c55dcaeef663ff4813a00eee9971024ea2e82614..171110bf0b8f3e643cfbe4dc92721b3cbdf965eb 100755 (executable)
@@ -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...