]> sipb.mit.edu Git - ikiwiki.git/commitdiff
remove unnecessary returns
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:51:31 +0000 (13:51 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:55:32 +0000 (13:55 -0500)
check_canremove/canrename is called only for its side effect (of failing if
removal is not allowed), its return value is never used and returning
something makes that unclear

IkiWiki/Plugin/remove.pm

index f62bfb1d75d55d0f78096567085e9f993a194307..3f1704846407aa55baad6dd662ba4c263dd25cec 100644 (file)
@@ -73,7 +73,6 @@ sub check_canremove ($$$) {
                        }
                }
        });
-       return $canremove;
 }
 
 sub formbuilder_setup (@) {