summaryrefslogtreecommitdiff
path: root/libpiny/lib
diff options
context:
space:
mode:
Diffstat (limited to 'libpiny/lib')
-rw-r--r--libpiny/lib/Piny/Repo.pm4
1 files changed, 0 insertions, 4 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 8ebb0f4..1acc526 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -326,8 +326,6 @@ sub _rename_repo {
sub _set_description {
my ( $s, $new_description, $old_description ) = @_;
- return unless defined $old_description;
-
open( my $fd, ">", $s->path . "/description" ) or die "Unable to open " . $s->path . "/description for writing: $!";
print $fd $new_description;
close( $fd ) or die "Error when closing " . $s->path . "/description: $!";
@@ -336,8 +334,6 @@ sub _set_description {
sub _change_owner {
my ( $s, $new_owner, $old_owner ) = @_;
- return unless defined $old_owner;
-
find( { wanted => sub { chown( $new_owner->uid, -1, $_ ) or die "Couldn't chown $_: $!"; }, no_chdir => 1 }, $s->path . "/objects" );
$s->clear_ikiwiki_setup;