Cleanup.
This commit is contained in:
parent
527530e89d
commit
a995ae2af5
2 changed files with 12 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue