Skip to content

Commit 3646168

Browse files
committed
fix formatting errors
1 parent c67a3a6 commit 3646168

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/code/src/com/redhat/rhn/taskomatic/TaskomaticApi.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public Date scheduleSatBunch(User user, String jobLabel, String bunchName, Strin
344344
*/
345345
public void scheduleRecurringAction(RecurringAction action, User user) throws TaskomaticApiException {
346346
if (!action.canAccess(user)) {
347-
throw new PermissionException(String.format("User '%s' can't schedule action '$s'", user, action));
347+
throw new PermissionException(String.format("User '%s' can't schedule action '%s'", user, action));
348348
}
349349

350350
doScheduleSatBunch(user, action.computeTaskoScheduleName(), "recurring-action-executor-bunch",
@@ -371,7 +371,7 @@ private Date doScheduleSatBunch(User user, String jobLabel, String bunchName, St
371371
*/
372372
public void unscheduleRecurringAction(RecurringAction action, User user) throws TaskomaticApiException {
373373
if (!action.canAccess(user)) {
374-
throw new PermissionException(String.format("User '%s' can't unschedule action '$s'", user, action));
374+
throw new PermissionException(String.format("User '%s' can't unschedule action '%s'", user, action));
375375
}
376376

377377
doUnscheduleSatBunch(user, action.computeTaskoScheduleName(), "recurring-action-executor-bunch");
@@ -519,8 +519,7 @@ public String getRepoSyncSchedule(Channel chan, User user)
519519
* @throws TaskomaticApiException if there was an error
520520
*/
521521
public List<Map<String, Object>> listSatBunchSchedules(User user) throws TaskomaticApiException {
522-
List<Map<String, Object>> bunches = (List<Map<String, Object>>) invoke("tasko.listSatBunches");
523-
return bunches;
522+
return (List<Map<String, Object>>) invoke("tasko.listSatBunches");
524523
}
525524

526525
/**

0 commit comments

Comments
 (0)