Fix typo in SendPollCreateCommand.java

Fix typo in error message, when options < 2
This commit is contained in:
Denys Filonenko 2026-02-16 11:02:01 +02:00 committed by Sebastian Scheibner
parent 7e93a15204
commit de42f55e37

View File

@ -70,7 +70,7 @@ public class SendPollCreateCommand implements JsonRpcLocalCommand {
final var noMulti = Boolean.TRUE.equals(ns.getBoolean("no-multi"));
final var options = ns.<String>getList("option");
if (options.size() < 2) {
throw new UserErrorException("Poll needs at least tow options");
throw new UserErrorException("Poll needs at least two options");
}
try {