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 eb4846a..2da7873 100755 (executable)
@@ -351,10 +351,11 @@ sub do_git () {
        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, ''));
+       }
     }
 }