From a783b5310751fbb03bd1693fffd755365f11ec15 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Tue, 15 May 2018 11:17:03 +0100 Subject: [PATCH] Fix grammar ..and bots --- lib/common/common_helper.rb | 2 +- lib/wpscan/wp_target/wp_api.rb | 2 -- lib/wpscan/wp_target/wp_rss.rb | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 92f8bef0..30f48a64 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -336,5 +336,5 @@ end # Check to see if we need a "s" def grammar_s(size) - size.to_i >= 1 ? "s" : "" + size.to_i >= 2 ? "s" : "" end \ No newline at end of file diff --git a/lib/wpscan/wp_target/wp_api.rb b/lib/wpscan/wp_target/wp_api.rb index de80ac86..2a52c4df 100644 --- a/lib/wpscan/wp_target/wp_api.rb +++ b/lib/wpscan/wp_target/wp_api.rb @@ -80,9 +80,7 @@ class WpTarget < WebSite table = Terminal::Table.new(headings: ['ID', 'Name', 'URL'], rows: users) puts table - return true end - return false end end end diff --git a/lib/wpscan/wp_target/wp_rss.rb b/lib/wpscan/wp_target/wp_rss.rb index 5239c045..1fc34839 100644 --- a/lib/wpscan/wp_target/wp_rss.rb +++ b/lib/wpscan/wp_target/wp_rss.rb @@ -62,9 +62,7 @@ class WpTarget < WebSite table = Terminal::Table.new(headings: ['Name'], rows: users) puts table - return true end - return false end end end