chiark / gitweb /
commitid.scad.pl: make if into a block (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:42:50 +0000 (18:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:42:50 +0000 (18:42 +0000)
commitid.scad.pl

index eb4846a954ee6cc3d136f6a7a884ff52c50e0031..2da787311e2f9d9b6d8d9996a6e29b9469ca999b 100755 (executable)
@@ -351,10 +351,11 @@ sub do_git () {
        gentextmodule_plusq("Git$sz", ljustt($sz, $git_object, $git_dirty))
            if defined $git_object;
 
        gentextmodule_plusq("Git$sz", ljustt($sz, $git_object, $git_dirty))
            if defined $git_object;
 
-       gentextmodule("Full$sz",
-                     rjustt($sz, $git_count.$git_dirty),
-                     ljustt($sz, $git_object, ''))
-           if defined $git_count && defined $git_object;
+       if (defined $git_count && defined $git_object) {
+           gentextmodule("Full$sz",
+                         rjustt($sz, $git_count.$git_dirty),
+                         ljustt($sz, $git_object, ''));
+       }
     }
 }    
 
     }
 }