Skip to content

Commit

Permalink
#164 : Intellisense cleanup for bxbot-services
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Apr 27, 2024
1 parent c177e99 commit 996e4e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public BotRestartServiceImpl(RestartEndpoint restartEndpoint) {

@Override
public String restart() {
// Spring endpoint returns a map: Collections.singletonMap("message", "Restarting");
final Map result = (Map) restartEndpoint.restart();
// Spring endpoint currently returns a map: Collections.singletonMap("message", "Restarting");
final Map<?, ?> result = (Map<?, ?>) restartEndpoint.restart();
final String status = (String) result.get("message");
log.info("Restart result: " + status);
return status;
Expand Down

0 comments on commit 996e4e1

Please sign in to comment.