Skip to content

Commit

Permalink
fix formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Feb 23, 2025
1 parent c67a3a6 commit 3646168
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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");
Expand Down Expand Up @@ -519,8 +519,7 @@ public String getRepoSyncSchedule(Channel chan, User user)
* @throws TaskomaticApiException if there was an error
*/
public List<Map<String, Object>> listSatBunchSchedules(User user) throws TaskomaticApiException {
List<Map<String, Object>> bunches = (List<Map<String, Object>>) invoke("tasko.listSatBunches");
return bunches;
return (List<Map<String, Object>>) invoke("tasko.listSatBunches");
}

/**
Expand Down

0 comments on commit 3646168

Please sign in to comment.