From 25915b0cbbc3fdd2380d7014e22b06ebd684452a Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Fri, 23 Aug 2013 12:57:37 +0200 Subject: [PATCH] Refactored version method to use ternary operator. --- lib/common/common_helper.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index ff718ffa..e4387f65 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -79,10 +79,7 @@ else end def version - if REVISION - return "v#{WPSCAN_VERSION}r#{REVISION}" - end - return "v#{WPSCAN_VERSION}" + REVISION ? "v#{WPSCAN_VERSION}r#{REVISION}" : "v#{WPSCAN_VERSION}" end # our 1337 banner