From 9755520a70fa4b32fc1ee8c6e3d6012cdd108a5f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Feb 2016 18:42:50 +0000 Subject: [PATCH] commitid.scad.pl: make if into a block (nfc) --- commitid.scad.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commitid.scad.pl b/commitid.scad.pl index eb4846a..2da7873 100755 --- a/commitid.scad.pl +++ b/commitid.scad.pl @@ -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, '')); + } } } -- 2.30.2