From 36461682129a7a5bbe66a471760b0ea5d01e5865 Mon Sep 17 00:00:00 2001 From: Michael Calmer Date: Sun, 23 Feb 2025 13:54:41 +0100 Subject: [PATCH] fix formatting errors --- java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java b/java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java index 2ac9362f8ea..2ca9cd1e0af 100644 --- a/java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java +++ b/java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java @@ -344,7 +344,7 @@ public Date scheduleSatBunch(User user, String jobLabel, String bunchName, Strin */ public void scheduleRecurringAction(RecurringAction action, User user) throws TaskomaticApiException { if (!action.canAccess(user)) { - throw new PermissionException(String.format("User '%s' can't schedule action '$s'", user, action)); + throw new PermissionException(String.format("User '%s' can't schedule action '%s'", user, action)); } doScheduleSatBunch(user, action.computeTaskoScheduleName(), "recurring-action-executor-bunch", @@ -371,7 +371,7 @@ private Date doScheduleSatBunch(User user, String jobLabel, String bunchName, St */ public void unscheduleRecurringAction(RecurringAction action, User user) throws TaskomaticApiException { if (!action.canAccess(user)) { - throw new PermissionException(String.format("User '%s' can't unschedule action '$s'", user, action)); + throw new PermissionException(String.format("User '%s' can't unschedule action '%s'", user, action)); } doUnscheduleSatBunch(user, action.computeTaskoScheduleName(), "recurring-action-executor-bunch"); @@ -519,8 +519,7 @@ public String getRepoSyncSchedule(Channel chan, User user) * @throws TaskomaticApiException if there was an error */ public List> listSatBunchSchedules(User user) throws TaskomaticApiException { - List> bunches = (List>) invoke("tasko.listSatBunches"); - return bunches; + return (List>) invoke("tasko.listSatBunches"); } /**