pkgdiff icon indicating copy to clipboard operation
pkgdiff copied to clipboard

Use another variable assignment with a combined operator for string concatenations

Open elfring opened this issue 4 years ago • 0 comments

:eyes: Some source code analysis tools can help to find opportunities for improving software components. :thought_balloon: I propose to increase the usage of combined operators accordingly.

diff --git a/pkgdiff.pl b/pkgdiff.pl
index 82ae2f5..06bf614 100644
--- a/pkgdiff.pl
+++ b/pkgdiff.pl
@@ -2038,7 +2038,7 @@ sub showOp($)
         $Op="";
     }
     if($Op) {
-        $Op = $Op." ";
+        $Op .= " ";
     }
     return $Op;
 }

elfring avatar Nov 27 '21 17:11 elfring