This commit is contained in:
Erik C. Thauvin 2020-03-05 22:49:44 -08:00
parent 527530e89d
commit a995ae2af5
2 changed files with 12 additions and 2 deletions

View file

@ -33,8 +33,8 @@ public class AkismetSample {
if (isSpam) {
System.out.println("The comment is SPAM according to Akismet.");
final boolean hasBenSubmitted = akismet.submitSpam(comment);
if (hasBenSubmitted) {
final boolean hasBeenSubmitted = akismet.submitSpam(comment);
if (hasBeenSubmitted) {
System.out.println("The comment has been submitted as SPAM to Akismet");
} else {
System.err.println(akismet.getErrorMessage());