From: Joey Hess Date: Mon, 26 Jan 2009 18:51:31 +0000 (-0500) Subject: remove unnecessary returns X-Git-Tag: 3.15~230 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/73f0011836e992c74bd7ac71fae2d149844855ad remove unnecessary returns 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 --- diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm index f62bfb1d7..3f1704846 100644 --- a/IkiWiki/Plugin/remove.pm +++ b/IkiWiki/Plugin/remove.pm @@ -73,7 +73,6 @@ sub check_canremove ($$$) { } } }); - return $canremove; } sub formbuilder_setup (@) {