aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-18 12:34:19 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-18 12:34:19 -0500
commitccf14b185e37fad9b208b6a3d4490e1130ad9def (patch)
tree1b8c9d6ffec6af60ca15214414375e25c4e44b0b /IkiWiki
parent32472c02ebcd646783855fcabd7f9f8c7f2bb4be (diff)
downloadikiwiki-ccf14b185e37fad9b208b6a3d4490e1130ad9def.tar
ikiwiki-ccf14b185e37fad9b208b6a3d4490e1130ad9def.tar.gz
brace style and layout
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm5
-rw-r--r--IkiWiki/Plugin/monotone.pm3
2 files changed, 6 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index c5c83a3a7..786c7b1f2 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -419,7 +419,10 @@ sub git_sha1 (;$) {
'--', $file);
if ($sha1) {
($sha1) = $sha1 =~ m/($sha1_pattern)/; # sha1 is untainted now
- } else { debug("Empty sha1sum for '$file'.") }
+ }
+ else {
+ debug("Empty sha1sum for '$file'.");
+ }
return defined $sha1 ? $sha1 : q{};
}
diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm
index c717ceefb..9502804f1 100644
--- a/IkiWiki/Plugin/monotone.pm
+++ b/IkiWiki/Plugin/monotone.pm
@@ -558,7 +558,8 @@ sub rcs_recentchanges ($) {
# from the changelog
if ($cert->{key} eq $config{mtnkey}) {
$committype = "web";
- } else {
+ }
+ else {
$committype = "mtn";
}
} elsif ($cert->{name} eq "date") {