modules/bashfaq.pl: factor out unnecessary $output

This commit is contained in:
Pragmatic Software 2021-05-23 17:09:13 -07:00
parent 7134010f98
commit c820bd5359
1 changed files with 1 additions and 2 deletions

3
modules/bashfaq.pl vendored
View File

@ -38,9 +38,8 @@ if (exists $faq{$query}) {
if ($match) {
my $id = sprintf "%03d", $match;
my $output = "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}";
print "$rcpt: " if $rcpt;
print "$output\n";
print "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}\n";
} else {
print "No matches found at https://mywiki.wooledge.org/BashFAQ\n";
}